Skip to content

Commit

Permalink
Add nonce attribute to HTMLElement prototype in externs/html5.js.
Browse files Browse the repository at this point in the history
Defined by spec here: https://html.spec.whatwg.org/multipage/dom.html#elements-in-the-dom:noncedelement

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=179705345
  • Loading branch information
adob authored and Tyler Breisacher committed Dec 21, 2017
1 parent d454bec commit a11f2bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions externs/browser/html5.js
Original file line number Diff line number Diff line change
Expand Up @@ -1545,6 +1545,13 @@ HTMLElement.prototype.attachedCallback;
*/
HTMLElement.prototype.detachedCallback;

/**
* Cryptographic nonce used by Content Security Policy.
* @see https://html.spec.whatwg.org/multipage/dom.html#elements-in-the-dom:noncedelement
* @type {?string}
*/
HTMLElement.prototype.nonce;

/** @type {string} */
HTMLAnchorElement.prototype.download;

Expand Down
2 changes: 1 addition & 1 deletion src/com/google/javascript/jscomp/resources.json

Large diffs are not rendered by default.

0 comments on commit a11f2bd

Please sign in to comment.