[wp-trac] [WordPress Trac] #48261: "noopener noreferrer" mis-parses links with "rel=" parameters

WordPress Trac noreply at wordpress.org
Tue Oct 8 21:39:21 UTC 2019


#48261: "noopener noreferrer" mis-parses links with "rel=" parameters
--------------------------+-----------------------------
 Reporter:  mvandemar     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  5.2.3
 Severity:  normal        |   Keywords:
  Focuses:  ui            |
--------------------------+-----------------------------
 If a link contains a url parameter named "rel" and the rel="noopener
 noreferrer" attribute is triggered (ie. the link has the target="_blank"
 attribute as well) then it botches the parsing, and you wind up with a
 link that looks like:


 {{{
 <a href="https://www.somesite.com/index.php?v=yes&rel=0" noopener
 noreferrer" target="_blank">Anchor Text</a>
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48261>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list