| Index: Source/core/html/HTMLScriptElement.idl
|
| diff --git a/Source/core/html/HTMLScriptElement.idl b/Source/core/html/HTMLScriptElement.idl
|
| index c96ec40273c62dfaa825096898f7d4a0b20ccf5d..9ef5b8b81c615bfeb3a4a1e2d5999d5a5b7a300a 100644
|
| --- a/Source/core/html/HTMLScriptElement.idl
|
| +++ b/Source/core/html/HTMLScriptElement.idl
|
| @@ -17,17 +17,29 @@
|
| * Boston, MA 02110-1301, USA.
|
| */
|
|
|
| +// https://html.spec.whatwg.org/#the-script-element
|
| +
|
| interface HTMLScriptElement : HTMLElement {
|
| - attribute DOMString text;
|
| - [Reflect=for] attribute DOMString htmlFor;
|
| - [Reflect] attribute DOMString event;
|
| + [Reflect, URL] attribute DOMString src;
|
| + [Reflect] attribute DOMString type;
|
| [Reflect] attribute DOMString charset;
|
| attribute boolean async;
|
| [Reflect] attribute boolean defer;
|
| - [Reflect, URL] attribute DOMString src;
|
| - [Reflect] attribute DOMString type;
|
| [Reflect, ReflectOnly=("anonymous","use-credentials"), ReflectEmpty="anonymous", ReflectInvalid="anonymous"] attribute DOMString? crossOrigin;
|
| + attribute DOMString text;
|
| +
|
| + // obsolete members
|
| + // https://html.spec.whatwg.org/#HTMLScriptElement-partial
|
| + // TODO(philipj): The event and htmlFor attributes should return the empty
|
| + // string on getting, and do nothing on setting.
|
| + [Reflect] attribute DOMString event;
|
| + [Reflect=for] attribute DOMString htmlFor;
|
| +
|
| + // Content Security Policy
|
| + // https://w3c.github.io/webappsec/specs/content-security-policy/#script-src-the-nonce-attribute
|
| [Reflect, RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute DOMString nonce;
|
|
|
| + // Subresource Integrity
|
| + // https://w3c.github.io/webappsec/specs/subresourceintegrity/
|
| [Reflect, RuntimeEnabled=SubresourceIntegrity] attribute DOMString integrity;
|
| };
|
|
|