[wp-trac] [WordPress Trac] #45387: Valid HTML get mangled on the frontend

WordPress Trac noreply at wordpress.org
Tue Nov 20 18:27:09 UTC 2018


#45387: Valid HTML get mangled on the frontend
--------------------------+------------------------------
 Reporter:  youknowriad   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by pbiron):

 First, the HTML you've got is invalid.  It should be:

 {{{
 <p>To make this thing happen, go to Pages <a href="http://google.com/"
 target="_blank" rel="noreferrer noopener" aria-label="This is > an aria
 label">http://google.com</a></p>
 }}}

 [Note that `>` has been replaced by `>` in `@aria-label`]

 Is the (classic) editor supposed to try to "fix" bad HTML?  If so, then
 there is a bug somewhere.  If not, then I'd say this "operator error" and
 this ticket should be closed as `invalid`.

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


More information about the wp-trac mailing list