Skip to content

Subresource Integrity for HTMLScriptElement and HTMLLinkElement #8955

Closed
microsoft/TypeScript-DOM-lib-generator
#134
@ghost

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions