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

WordPress Trac noreply at wordpress.org
Wed Oct 9 21:52:03 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:  Formatting                |     Version:  5.2.3
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------------

Comment (by mvandemar):

 Confirming that this patch appears to fix the issue on 5.2.3. I also
 tested the case where there is an existing rel that is not "noopener
 noreferrer" and it inserts the additional parameters correctly, eg:


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

 correctly becomes:


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

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


More information about the wp-trac mailing list