[wp-trac] [WordPress Trac] #20943: Paragraphs get removed in table cells when Visual editor is refreshed

WordPress Trac wp-trac at lists.automattic.com
Sat Jun 16 19:27:39 UTC 2012


#20943: Paragraphs get removed in table cells when Visual editor is refreshed
-------------------------------------------------+-------------------------
 Reporter:  JboyJW                               |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Formatting                           |  Review
 Severity:  normal                               |     Version:  3.3.2
 Keywords:  needs-testing has-patch needs-unit-  |  Resolution:
  tests                                          |
-------------------------------------------------+-------------------------

Comment (by azaozz):

 Replying to [comment:10 Otto42]:
 > I'd be perfectly okay with always adding the p in there. That's sort of
 the whole point of wpautop. :)

 That may prove "unpopular". If a user wants a tight table like:

 {{{
 _____________
 | abc | 123 |

 }}}

 it will turn it into:

 {{{
 _____________
 |     |     |
 | abc | 123 |
 |     |     |
 }}}

 Also <li> is one of these "block parents" and we don't want to force
 `<li><p>...</p></li>` everywhere but still would need to support it.

 All that gets even more complicated when adding HTML 5.0 into the mix.
 Unfortunately in HTML 5 there aren't clearly pre-determined block tags in
 the same sense as in HTML 4 / XTHML 1. Most of the block rules there are
 "<p> can contain <a> but not if <a> contains block tag".

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


More information about the wp-trac mailing list