Make WordPress Core

Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#16060 closed defect (bug) (duplicate)

Cannot close HTML comments in WordPress page/post

Reported by: eharris Owned by:
Priority: normal Milestone:
Component: Editor Version: 3.0.4
Severity: normal Keywords: has-patch 3.2-early
Cc: Focuses:

Description

WordPress' HTML editor for creating pages and posts does not allow "-->", converting it instead to "&8211;>". This is fine for the visual editor, but the HTML editor should not make such substitutions, as it means that it becomes impossible to comment out sections on pages for whatever reason The editor does NOT make the same change to "<!--", so the comment successfully opens, but it does not close, creating formatting problems. This has been documented for 2 years on the WordPress support forums:
http://wordpress.org/support/topic/html-comments-not-post-comments-in-pages-038-posts-fail
http://wordpress.org/support/topic/html-comment-destroys-formatting

Attachments (1)

16060.patch (593 bytes ) - added by SergeyBiryukov 16 years ago.

Download all attachments as: .zip

Change History (6)

#1 @SergeyBiryukov
16 years ago

  • Keywords has-patch added; HTML comment corrupted formatting character entity substitution removed

I have encountered this myself.

#2 @SergeyBiryukov
16 years ago

Example post text to reproduce:

<!-- Sample list
<ul>
	<li>Sample item</li>
</ul> -->

Output:

<!-- Sample list
<ul>
	<li>Sample item</li>
</ul> –>

#3 @dd32
16 years ago

  • Keywords 3.2-early added
  • Milestone Awaiting ReviewFuture Release

#4 @SergeyBiryukov
15 years ago

  • Keywords has-patch 3.2-early → has-patch 3.2-early
  • Resolutionduplicate
  • Status newclosed

#5 @SergeyBiryukov
15 years ago

  • Milestone Future Release
Note: See TracTickets for help on using tickets.