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

WordPress Trac wp-trac at lists.automattic.com
Wed May 19 23:53:53 UTC 2010


#10033: wptexturize and wpautop problems with html comments and object tags
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:             
     Type:  defect (bug)       |      Status:  new        
 Priority:  normal             |   Milestone:  3.1        
Component:  Formatting         |     Version:  2.8        
 Severity:  minor              |    Keywords:  needs-patch
-------------------------------+--------------------------------------------

Comment(by azaozz):

 For wpautop the fix is to ensure that there aren't any line breaks inside
 the `<object>` tag. There is a regex in it that tries to remove them (in
 both the php and JS versions) but it is not HTML comments aware.

 The above example breaks because the IE conditionals are on new lines. We
 could add yet another regex to specifically check for HTML comments but
 it's generally better for plugins to remove any line breaks from complex
 `<object>` blocks when inserting them before wpautop (this is true for all
 complex HTML blocks too). The objects inserted by WordPress work properly.

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


More information about the wp-trac mailing list