Index: core/dom/Node.idl |
diff --git a/core/dom/Node.idl b/core/dom/Node.idl |
index 9c3e3a5199cb3dc3bea44241bf43b0642fbbc07d..d3271a4e502c51c6e8afb744d2e6f86769126bf0 100644 |
--- a/core/dom/Node.idl |
+++ b/core/dom/Node.idl |
@@ -22,7 +22,6 @@ |
[ |
DependentLifetime, |
- TypeChecking=Interface, |
] interface Node : EventTarget { |
const unsigned short ELEMENT_NODE = 1; |
// FIXME: Attr should not inherit from Node. crbug.com/305105 |
@@ -38,7 +37,7 @@ |
const unsigned short DOCUMENT_TYPE_NODE = 10; |
const unsigned short DOCUMENT_FRAGMENT_NODE = 11; |
const unsigned short NOTATION_NODE = 12; // historical |
- readonly attribute unsigned short nodeType; |
+ [ImplementedAs=getNodeType] readonly attribute unsigned short nodeType; |
readonly attribute DOMString nodeName; |
readonly attribute DOMString? baseURI; |
@@ -52,14 +51,14 @@ |
[PerWorldBindings] readonly attribute Node? lastChild; |
[PerWorldBindings] readonly attribute Node? previousSibling; |
[PerWorldBindings] readonly attribute Node? nextSibling; |
+ [RuntimeEnabled=ShadowDOMV1, MeasureAs=NodeTreeRoot] readonly attribute Node treeRoot; |
[CustomElementCallbacks] attribute DOMString? nodeValue; |
// FIXME: textContent should not have [TreatUndefinedAs=NullString]. |
[TreatUndefinedAs=NullString, CustomElementCallbacks] attribute DOMString? textContent; |
[CustomElementCallbacks] void normalize(); |
- // FIXME: The deep argument should have a default value false. |
- [NewObject, CustomElementCallbacks] Node cloneNode(optional boolean deep); |
+ [NewObject, CustomElementCallbacks] Node cloneNode(optional boolean deep = false); |
boolean isEqualNode(Node? node); |
const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01; |
@@ -80,11 +79,7 @@ |
[CustomElementCallbacks, PerWorldBindings, RaisesException] Node replaceChild(Node node, Node child); |
[CustomElementCallbacks, RaisesException] Node removeChild(Node child); |
- // FIXME: namespaceURI and localName have been moved to Element and Attr. |
- [MeasureAs=NodeNamespaceURI] readonly attribute DOMString? namespaceURI; |
- [MeasureAs=NodeLocalName] readonly attribute DOMString? localName; |
- |
// FIXME: isSameNode has been removed from the spec: |
// https://www.w3.org/Bugs/Public/show_bug.cgi?id=27424 |
- [MeasureAs=NodeIsSameNode] boolean isSameNode(Node? other); |
+ [MeasureAs=NodeIsSameNode, ImplementedAs=isSameNodeDeprecated] boolean isSameNode(Node? other); |
}; |