[wp-trac] [WordPress Trac] #4298: wpautop: Avoid wrapping <table> tags with a paragraph
WordPress Trac
noreply at wordpress.org
Fri Feb 10 15:25:57 UTC 2023
#4298: wpautop: Avoid wrapping <table> tags with a paragraph
-------------------------------------------------+-------------------------
Reporter: Denis-de-Bernardy | Owner:
| markjaquith
Type: defect (bug) | Status: reopened
Priority: low | Milestone: Future
| Release
Component: Formatting | Version: 2.7
Severity: minor | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses:
wpautop |
-------------------------------------------------+-------------------------
Comment (by Mte90):
So reading the spec https://www.w3.org/TR/html4/struct/text.html#h-9.3 (I
think that is the same as HTML5 the W3C validator infact report it as
error) paragraph cannot contain a table element.
Reading seems that we open a paragraph, we add a table and the close of
the table tag close the paragraph.
This means that we need to fix wpautop and add some tests for that case.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/4298#comment:41>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list