[wp-trac] [WordPress Trac] #3624: Fixing broken tags in <pre> blocks

WordPress Trac wp-trac at lists.automattic.com
Sun Jan 21 00:04:03 GMT 2007


#3624: Fixing broken tags in <pre> blocks
-----------------------------+----------------------------------------------
 Reporter:  robertaccettura  |       Owner:  anonymous
     Type:  defect           |      Status:  new      
 Priority:  low              |   Milestone:  2.2      
Component:  Administration   |     Version:  2.0.7    
 Severity:  minor            |    Keywords:  html     
-----------------------------+----------------------------------------------
 <pre lang="html4strict">
         <meta content="foo" name="bar">
         <meta content="baz" name="zap">
 </pre>

 Wordpress turns it into:

 <pre lang="html4strict">
         <meta content="foo" name="bar">
         </meta><meta content="baz" name="zap">
 </meta></pre>

 At a minimum there should be the ability to override such behavior via
 either a <!-- NOPARSE --> <!-- /NOPARSE --> tags or something.

 The above isn't correct because there are many cases where one may want to
 display only some code, and not close everything up.  WordPress should
 attempt to keep things valid, but not at the expense of altering data
 beyond intent.

 The caveat here is that plugins may modify things here (such as syntax
 highlighting, and escaping <>&.  But that's when viewed not saved.

 I think the best solution is to have a way to exempt the assistance
 wordpress provides for certain blocks via a html comment.

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


More information about the wp-trac mailing list