
Description
Subresource Integrity (SRI) is currently a W3 Proposed Recommendation. It ships with current versions of Firefox and Chrome.
Setting the integrity
property should not hurt other browsers, it is a progressive enhancement.
TypeScript Version:
nightly (1.9.0-dev.20160603)
Code
// A self-contained demonstration of the problem follows...
let script = document.createElement('script');
script.integrity = "sha-256-some-hash"
Expected behavior:
integrity
property is defined
Actual behavior:
integrity
property is not defined