[wp-trac] [WordPress Trac] #17420: Wordpress visual editing causes a validation error (DIV tag inside a P tag)

WordPress Trac wp-trac at lists.automattic.com
Sat May 14 01:20:21 UTC 2011


#17420: Wordpress visual editing causes a validation error (DIV tag inside a P tag)
---------------------------------------+----------------------
 Reporter:  trusktr                    |       Owner:
     Type:  defect (bug)               |      Status:  closed
 Priority:  low                        |   Milestone:
Component:  TinyMCE                    |     Version:  3.1
 Severity:  trivial                    |  Resolution:  wontfix
 Keywords:  needs-patch needs-testing  |
---------------------------------------+----------------------
Changes (by azaozz):

 * priority:  normal => low
 * status:  new => closed
 * resolution:   => wontfix
 * severity:  major => trivial
 * milestone:  Awaiting Review =>


Comment:

 There are several ways end users can break images with captions in the
 visual editor, we trust them to press Ctrl+Z to undo it :)

 Generally browsers are a bit picky when is comes to placing the caret in
 `contentEditable` mode and some elements break that when placed first. As
 there is an easy workaround in this case, don't think it's worth it trying
 to place the caret before the caption. It would be easy enough for the
 user to either switch to HTML mode or delete the image, type the other
 content and insert it again.

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


More information about the wp-trac mailing list