mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Match the spec more closely in Node.webidl.
This commit is contained in:
parent
daf9cf8b9d
commit
933f29f512
1 changed files with 10 additions and 9 deletions
|
@ -50,14 +50,6 @@ interface Node : EventTarget {
|
||||||
attribute DOMString? nodeValue;
|
attribute DOMString? nodeValue;
|
||||||
[SetterThrows, Pure]
|
[SetterThrows, Pure]
|
||||||
attribute DOMString? textContent;
|
attribute DOMString? textContent;
|
||||||
[Throws]
|
|
||||||
Node insertBefore(Node node, Node? child);
|
|
||||||
[Throws]
|
|
||||||
Node appendChild(Node node);
|
|
||||||
[Throws]
|
|
||||||
Node replaceChild(Node node, Node child);
|
|
||||||
[Throws]
|
|
||||||
Node removeChild(Node child);
|
|
||||||
void normalize();
|
void normalize();
|
||||||
|
|
||||||
[Throws]
|
[Throws]
|
||||||
|
@ -69,7 +61,7 @@ interface Node : EventTarget {
|
||||||
const unsigned short DOCUMENT_POSITION_FOLLOWING = 0x04;
|
const unsigned short DOCUMENT_POSITION_FOLLOWING = 0x04;
|
||||||
const unsigned short DOCUMENT_POSITION_CONTAINS = 0x08;
|
const unsigned short DOCUMENT_POSITION_CONTAINS = 0x08;
|
||||||
const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10;
|
const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10;
|
||||||
const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; // historical
|
const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20;
|
||||||
unsigned short compareDocumentPosition(Node other);
|
unsigned short compareDocumentPosition(Node other);
|
||||||
boolean contains(Node? other);
|
boolean contains(Node? other);
|
||||||
|
|
||||||
|
@ -77,6 +69,15 @@ interface Node : EventTarget {
|
||||||
DOMString? lookupNamespaceURI(DOMString? prefix);
|
DOMString? lookupNamespaceURI(DOMString? prefix);
|
||||||
boolean isDefaultNamespace(DOMString? namespace);
|
boolean isDefaultNamespace(DOMString? namespace);
|
||||||
|
|
||||||
|
[Throws]
|
||||||
|
Node insertBefore(Node node, Node? child);
|
||||||
|
[Throws]
|
||||||
|
Node appendChild(Node node);
|
||||||
|
[Throws]
|
||||||
|
Node replaceChild(Node node, Node child);
|
||||||
|
[Throws]
|
||||||
|
Node removeChild(Node child);
|
||||||
|
|
||||||
// Mozilla-specific stuff
|
// Mozilla-specific stuff
|
||||||
// These have been moved to Element in the spec.
|
// These have been moved to Element in the spec.
|
||||||
// If we move namespaceURI, prefix and localName to Element they should return
|
// If we move namespaceURI, prefix and localName to Element they should return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue