[wp-trac] [WordPress Trac] #10033: wptexturize and wpautop problems with html comments and object tags

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 4 12:06:36 GMT 2009


#10033: wptexturize and wpautop problems with html comments and object tags
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:     
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  2.9
Component:  Formatting         |     Version:  2.8
 Severity:  minor              |    Keywords:     
-------------------------------+--------------------------------------------
 Bumped into this one when upgrading my mediacaster plugin to use swfobject
 2.1 (which is not 1.5 compatible), as documented here:

 http://code.google.com/p/swfobject/wiki/documentation

 I take it I'm not the only one who is going to need to upgrade a plugin.
 It's minor, since I'll just move the filter further down in the queue, but
 it's still worth reporting:

 {{{
 <object id="m544cf9700db147f751dc34ea1241d8bd" classid="clsid:D27CDB6E-
 AE6D-11cf-96B8-444553540000" width="320" height="260">
 <param name="movie" value="http://www.youtube.com/v/_nkZ3eHeXlc" />
 <!--[if !IE]>-->

 <object type="application/x-shockwave-flash"
 data="http://www.youtube.com/v/_nkZ3eHeXlc" width="320" height="260">
 <!--<![endif]-->
 <p><a href="http://www.macromedia.com/go/getflashplayer">Get Flash 9.0</a>
 to see this player.</p>
 <!--[if !IE]>-->
 </object>
 <!--<![endif]-->
 </object>
 <script type="text/javascript">
 //swfobject.registerObject("m544cf9700db147f751dc34ea1241d8bd", "9.0.0");
 </script>

 }}}

 Gets turned into the following mess:

 {{{
 <object id="m544cf9700db147f751dc34ea1241d8bd" classid="clsid:D27CDB6E-
 AE6D-11cf-96B8-444553540000" width="320" height="260"><param name="movie"
 value="http://www.youtube.com/v/_nkZ3eHeXlc" /><!--[if !IE]>&#8211;><br />
 <object type="application/x-shockwave-flash"
 data="http://www.youtube.com/v/_nkZ3eHeXlc" width="320" height="260"><br
 />
 <!--<![endif]--></p>
 <p><a href="http://www.macromedia.com/go/getflashplayer">Get Flash 9.0</a>
 to see this player.</p>
 <p><!--[if !IE]>&#8211;><br />
 </object><br />

 <!--<![endif]--><br />
 </object><br />
 <script type="text/javascript">
 //swfobject.registerObject("m544cf9700db147f751dc34ea1241d8bd", "9.0.0");
 </script>
 }}}

 So, two/three issues:

  - wpautop should also ignore double object tags, and html comments
  - wptexturize should ignore html comments

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


More information about the wp-trac mailing list