WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #15918


Ignore:
Timestamp:
12/20/2010 04:17:38 PM (7 years ago)
Author:
scribu
Comment:

The problem is that wpautop() doesn't know how to treat the new HTML5 tags yet.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15918

    • Property Keywords theme parser removed
    • Property Component changed from Template to Formatting
  • Ticket #15918 – Description

    initial v1  
    22
    33Create article with following HTML:
     4
     5{{{
    46<div class="wassup"><a href="#">WP IZ ASSUM</a></div>
    5 Browser will get: <div class="wassup"><a href="#">WP IZ ASSUM</a></div>
     7}}}
     8
     9Browser will get:
     10
     11{{{
     12<div class="wassup"><a href="#">WP IZ ASSUM</a></div>
     13}}}
     14
    615All seems to be fine! Now get rid of unnecessary div.
    716
    817Create article with following HTML:
     18
     19{{{
    920<a href="#">WP IZ ASSUM</a>
    10 Browser will get: <p><a href="#">WP IZ ASSUM</a></p>
     21}}}
     22
     23Browser will get:
     24
     25{{{
     26<p><a href="#">WP IZ ASSUM</a></p>
     27}}}
     28
    1129Dunno why there is extra <p> but who cares. All seems to be OK.
    1230
    1331Create article with following HTML:
     32
     33{{{
    1434<figure><a href="#">WP IZ ASSUM</a>
    1535</figure>
     36}}}
     37
    1638Browser will get:
     39
     40{{{
    1741<figure><a href="#">WP IZ ASSUM</a><br />
    1842</figure>
     43}}}
    1944
    2045Now isn't that cool? But check what is even cooler!
    2146
    2247Create article with following HTML:
     48
     49{{{
    2350<figure><a href="#">WP IZ ASSUM</a>
    2451<figcaption>NO IT'S BUGGY AS HELL</figcaption>
    2552</figure>
     53}}}
    2654
    2755Browser will get:
     56{{{
    2857<figure><a href="#">WP IZ ASSUM</a></p>
    2958<figcaption>NO IT’S BUGGY AS HELL</figcaption>
    3059</figure>
     60}}}
    3161
    3262Wow! Say hello to invalid markup and rendering problems! Auto-closing of tags turned off. No matter of the settings I still get this nice messed up html. WYSIWYG turned off also.