[wp-trac] [WordPress Trac] #22249: Add ability to set or remove attributes on enqueued scripts and styles.

WordPress Trac noreply at wordpress.org
Fri Sep 23 12:58:37 UTC 2016


#22249: Add ability to set or remove attributes on enqueued scripts and styles.
---------------------------------------------+-----------------------------
 Reporter:  ryanve                           |       Owner:
     Type:  enhancement                      |      Status:  assigned
 Priority:  normal                           |   Milestone:  Future Release
Component:  Script Loader                    |     Version:
 Severity:  normal                           |  Resolution:
 Keywords:  needs-refresh early needs-patch  |     Focuses:
---------------------------------------------+-----------------------------

Comment (by zodiac1978):

 Replying to [comment:20 bhubbard]:
 > I also want to use it to add the integrity and crossorigin when I
 register Bootstrap scripts from BootstrapCDN:
 >
 > {{{
 > <link
 href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"
 rel="stylesheet"
 integrity="sha256-MfvZlkHCEqatNoGiOXveE8FIwMzZg4W85qfrfIFBfYc=
 sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ=="
 crossorigin="anonymous">
 > }}}

 This is a interesting idea, but not well supported enough, I think.

 See:
 https://wiki.mozilla.org/Security/Guidelines/Web_Security#Subresource_Integrity
 https://w3c.github.io/webappsec-subresource-integrity/
 http://caniuse.com/#search=integrity

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


More information about the wp-trac mailing list