Index: third_party/WebKit/Source/core/dom/Document.idl |
diff --git a/third_party/WebKit/Source/core/dom/Document.idl b/third_party/WebKit/Source/core/dom/Document.idl |
index 0553695570180fc3664fad96d012dfd4d89e43f1..6a8093d427f3e25eadf8c9f82227edde31c976aa 100644 |
--- a/third_party/WebKit/Source/core/dom/Document.idl |
+++ b/third_party/WebKit/Source/core/dom/Document.idl |
@@ -29,6 +29,8 @@ enum VisibilityState { "hidden", "visible", "prerender", "unloaded" }; |
// https://mikewest.github.io/cors-rfc1918/#feature-detect |
enum AddressSpace { "local", "private", "public" }; |
+typedef (HTMLScriptElement or SVGScriptElement) HTMLOrSVGScriptElement; |
+ |
// https://dom.spec.whatwg.org/#interface-document |
// FIXME: Document should have a constructor. crbug.com/238234 |
@@ -114,7 +116,7 @@ interface Document : Node { |
[SameObject, Measure] readonly attribute HTMLCollection forms; |
[SameObject, Measure] readonly attribute HTMLCollection scripts; |
[PerWorldBindings] NodeList getElementsByName(DOMString elementName); |
- [ImplementedAs=currentScriptForBinding] readonly attribute HTMLScriptElement? currentScript; |
+ [ImplementedAs=currentScriptForBinding] readonly attribute HTMLOrSVGScriptElement? currentScript; |
// dynamic markup insertion |
// FIXME: There are two open() methods in the spec. |