[wp-trac] [WordPress Trac] #3421: "WordPress should correct invalidly nested XHTML automatically" option breaking microformats

WordPress Trac noreply at wordpress.org
Wed Mar 20 21:58:15 UTC 2024


#3421: "WordPress should correct invalidly nested XHTML automatically" option
breaking microformats
--------------------------+-------------------------
 Reporter:  conoro        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  General       |     Version:  2.0.5
 Severity:  normal        |  Resolution:  worksforme
 Keywords:                |     Focuses:
--------------------------+-------------------------

Comment (by chriswaker00):

 It seems like you're encountering an issue with an option that, when
 enabled, is rewriting valid XHTML markup and breaking the structure of
 hcard and hreview elements. Specifically, it's causing the markup for the
 reviewer's name (hcard) inside a review (hreview) to be rearranged
 incorrectly.

 The original markup looks like this:

 ```html
 <span class="reviewer vcard"><span class="fn">Conor</span></span>
 ```

 But when the option is enabled, it changes to:

 ```html
 <span class="reviewer vcard"></span><span class="fn">Conor</span>
 ```

 This behavior is problematic because it disrupts valid markup, causing
 unintended consequences. While there may be an option to turn off this
 feature, it's still an issue that such rewriting occurs in the first
 place.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/3421#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list