diff options
Diffstat (limited to 'src/components/script/dom/webidls')
-rw-r--r-- | src/components/script/dom/webidls/Element.webidl | 3 | ||||
-rw-r--r-- | src/components/script/dom/webidls/Node.webidl | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/components/script/dom/webidls/Element.webidl b/src/components/script/dom/webidls/Element.webidl index 2211fd5c887..aa0161204b0 100644 --- a/src/components/script/dom/webidls/Element.webidl +++ b/src/components/script/dom/webidls/Element.webidl @@ -18,10 +18,11 @@ interface Element : Node { We haven't moved these from Node to Element like the spec wants. [Throws] - readonly attribute DOMString? namespaceURI; readonly attribute DOMString? prefix; readonly attribute DOMString localName; */ + [Constant] + readonly attribute DOMString namespaceURI; // Not [Constant] because it depends on which document we're in [Pure] readonly attribute DOMString tagName; diff --git a/src/components/script/dom/webidls/Node.webidl b/src/components/script/dom/webidls/Node.webidl index 2a13d6ab381..39555e1e0d8 100644 --- a/src/components/script/dom/webidls/Node.webidl +++ b/src/components/script/dom/webidls/Node.webidl @@ -79,11 +79,9 @@ interface Node : EventTarget { // Mozilla-specific stuff // These have been moved to Element in the spec. - // If we move namespaceURI, prefix and localName to Element they should return + // If we move prefix and localName to Element they should return // a non-nullable type. [Constant] - readonly attribute DOMString? namespaceURI; - [Constant] readonly attribute DOMString? prefix; [Constant] readonly attribute DOMString? localName; |