[wp-trac] [WordPress Trac] #16060: Cannot close HTML comments in WordPress page/post

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 1 18:02:19 UTC 2011


#16060: Cannot close HTML comments in WordPress page/post
-------------------------+-------------------------------------------------
 Reporter:  eharris      |      Owner:
     Type:  defect       |     Status:  new
  (bug)                  |  Milestone:  Awaiting Review
 Priority:  normal       |    Version:  3.0.4
Component:  Editor       |   Keywords:  HTML comment, corrupted formatting,
 Severity:  normal       |  character entity substitution
-------------------------+-------------------------------------------------
 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

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16060>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list