[wp-trac] [WordPress Trac] #11947: wpautop inserts line break elements in select element breaking XHTML 1.1 Strict compatibility

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 24 23:06:12 UTC 2011


#11947: wpautop inserts line break elements in select element breaking XHTML 1.1
Strict compatibility
-------------------------------------------------+-------------------------
 Reporter:  akerem                               |       Owner:
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  low                                  |   Milestone:  3.0
Component:  Formatting                           |     Version:  2.9.1
 Severity:  normal                               |  Resolution:
 Keywords:  wpautop line break, form, select,    |
  option                                         |
-------------------------------------------------+-------------------------
Changes (by WraithKenny):

 * cc: Ken@… (added)
 * keywords:  wpautop, line break, form, select, option => wpautop line
     break, form, select, option
 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 (Tested on 3.3-aortic-dissection)

 The PHP version is fixed, but not the JavaScript version (Everyone always
 forgets the poor JavaScript version). Try in HTML Tab:

 {{{
 <select>
         <option>Value</option>
         <option>Value</option>
         <option>Value</option>
         <option>Value</option>
         <option>Value</option>
 </select>
 }}}
 Then switch to Visual and Back. The result is:
 {{{
 <select> <option>Value</option></select>
 <select> <option>Value</option></select>
 <select> <option>Value</option></select>
 <select> <option>Value</option></select>
 <select> <option>Value</option></select>
 }}}

 There are other fixes (I'm sure) that got applied to the php wpautop, but
 not the JavaScript version. Sadly, TinyMCE's reputation might be taking a
 beating over stuff like this ;-)

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


More information about the wp-trac mailing list