Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1191)

Unified Diff: Source/core/html/HTMLScriptElement.idl

Issue 1031473002: Sync HTML element interfaces S-V with the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: link to col element too Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/HTMLInputElement.idl ('k') | Source/core/html/HTMLSelectElement.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
};
« no previous file with comments | « Source/core/html/HTMLInputElement.idl ('k') | Source/core/html/HTMLSelectElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698