Bug 932501. Drop nextElementSibling/previousElementSibling from DocumentType. r=smaug

This commit is contained in:
Boris Zbarsky 2013-11-17 00:10:19 -05:00
parent 9ba914a450
commit e57b04efae
5 changed files with 33 additions and 23 deletions

View File

@ -26,11 +26,11 @@
"DocumentType interface: operation before([object Object],[object Object])": true, "DocumentType interface: operation before([object Object],[object Object])": true,
"DocumentType interface: operation after([object Object],[object Object])": true, "DocumentType interface: operation after([object Object],[object Object])": true,
"DocumentType interface: operation replace([object Object],[object Object])": true, "DocumentType interface: operation replace([object Object],[object Object])": true,
"DocumentType interface: document.doctype must inherit property \"before\" with the proper type (5)": true, "DocumentType interface: document.doctype must inherit property \"before\" with the proper type (3)": true,
"DocumentType interface: calling before([object Object],[object Object]) on document.doctype with too few arguments must throw TypeError": true, "DocumentType interface: calling before([object Object],[object Object]) on document.doctype with too few arguments must throw TypeError": true,
"DocumentType interface: document.doctype must inherit property \"after\" with the proper type (6)": true, "DocumentType interface: document.doctype must inherit property \"after\" with the proper type (4)": true,
"DocumentType interface: calling after([object Object],[object Object]) on document.doctype with too few arguments must throw TypeError": true, "DocumentType interface: calling after([object Object],[object Object]) on document.doctype with too few arguments must throw TypeError": true,
"DocumentType interface: document.doctype must inherit property \"replace\" with the proper type (7)": true, "DocumentType interface: document.doctype must inherit property \"replace\" with the proper type (5)": true,
"DocumentType interface: calling replace([object Object],[object Object]) on document.doctype with too few arguments must throw TypeError": true, "DocumentType interface: calling replace([object Object],[object Object]) on document.doctype with too few arguments must throw TypeError": true,
"Element interface: existence and properties of interface object": true, "Element interface: existence and properties of interface object": true,
"Element interface: attribute namespaceURI": true, "Element interface: attribute namespaceURI": true,
@ -47,11 +47,11 @@
"Element interface: calling prepend([object Object],[object Object]) on element with too few arguments must throw TypeError": true, "Element interface: calling prepend([object Object],[object Object]) on element with too few arguments must throw TypeError": true,
"Element interface: element must inherit property \"append\" with the proper type (24)": true, "Element interface: element must inherit property \"append\" with the proper type (24)": true,
"Element interface: calling append([object Object],[object Object]) on element with too few arguments must throw TypeError": true, "Element interface: calling append([object Object],[object Object]) on element with too few arguments must throw TypeError": true,
"Element interface: element must inherit property \"before\" with the proper type (27)": true, "Element interface: element must inherit property \"before\" with the proper type (25)": true,
"Element interface: calling before([object Object],[object Object]) on element with too few arguments must throw TypeError": true, "Element interface: calling before([object Object],[object Object]) on element with too few arguments must throw TypeError": true,
"Element interface: element must inherit property \"after\" with the proper type (28)": true, "Element interface: element must inherit property \"after\" with the proper type (26)": true,
"Element interface: calling after([object Object],[object Object]) on element with too few arguments must throw TypeError": true, "Element interface: calling after([object Object],[object Object]) on element with too few arguments must throw TypeError": true,
"Element interface: element must inherit property \"replace\" with the proper type (29)": true, "Element interface: element must inherit property \"replace\" with the proper type (27)": true,
"Element interface: calling replace([object Object],[object Object]) on element with too few arguments must throw TypeError": true, "Element interface: calling replace([object Object],[object Object]) on element with too few arguments must throw TypeError": true,
"Attr interface: existence and properties of interface object": true, "Attr interface: existence and properties of interface object": true,
"Attr interface: existence and properties of interface prototype object": true, "Attr interface: existence and properties of interface prototype object": true,
@ -60,25 +60,25 @@
"CharacterData interface: operation after([object Object],[object Object])": true, "CharacterData interface: operation after([object Object],[object Object])": true,
"CharacterData interface: operation replace([object Object],[object Object])": true, "CharacterData interface: operation replace([object Object],[object Object])": true,
"Text interface: existence and properties of interface object": true, "Text interface: existence and properties of interface object": true,
"CharacterData interface: document.createTextNode(\"abc\") must inherit property \"before\" with the proper type (9)": true, "CharacterData interface: document.createTextNode(\"abc\") must inherit property \"before\" with the proper type (7)": true,
"CharacterData interface: calling before([object Object],[object Object]) on document.createTextNode(\"abc\") with too few arguments must throw TypeError": true, "CharacterData interface: calling before([object Object],[object Object]) on document.createTextNode(\"abc\") with too few arguments must throw TypeError": true,
"CharacterData interface: document.createTextNode(\"abc\") must inherit property \"after\" with the proper type (10)": true, "CharacterData interface: document.createTextNode(\"abc\") must inherit property \"after\" with the proper type (8)": true,
"CharacterData interface: calling after([object Object],[object Object]) on document.createTextNode(\"abc\") with too few arguments must throw TypeError": true, "CharacterData interface: calling after([object Object],[object Object]) on document.createTextNode(\"abc\") with too few arguments must throw TypeError": true,
"CharacterData interface: document.createTextNode(\"abc\") must inherit property \"replace\" with the proper type (11)": true, "CharacterData interface: document.createTextNode(\"abc\") must inherit property \"replace\" with the proper type (9)": true,
"CharacterData interface: calling replace([object Object],[object Object]) on document.createTextNode(\"abc\") with too few arguments must throw TypeError": true, "CharacterData interface: calling replace([object Object],[object Object]) on document.createTextNode(\"abc\") with too few arguments must throw TypeError": true,
"ProcessingInstruction interface: existence and properties of interface object": true, "ProcessingInstruction interface: existence and properties of interface object": true,
"CharacterData interface: xmlDoc.createProcessingInstruction(\"abc\", \"def\") must inherit property \"before\" with the proper type (9)": true, "CharacterData interface: xmlDoc.createProcessingInstruction(\"abc\", \"def\") must inherit property \"before\" with the proper type (7)": true,
"CharacterData interface: calling before([object Object],[object Object]) on xmlDoc.createProcessingInstruction(\"abc\", \"def\") with too few arguments must throw TypeError": true, "CharacterData interface: calling before([object Object],[object Object]) on xmlDoc.createProcessingInstruction(\"abc\", \"def\") with too few arguments must throw TypeError": true,
"CharacterData interface: xmlDoc.createProcessingInstruction(\"abc\", \"def\") must inherit property \"after\" with the proper type (10)": true, "CharacterData interface: xmlDoc.createProcessingInstruction(\"abc\", \"def\") must inherit property \"after\" with the proper type (8)": true,
"CharacterData interface: calling after([object Object],[object Object]) on xmlDoc.createProcessingInstruction(\"abc\", \"def\") with too few arguments must throw TypeError": true, "CharacterData interface: calling after([object Object],[object Object]) on xmlDoc.createProcessingInstruction(\"abc\", \"def\") with too few arguments must throw TypeError": true,
"CharacterData interface: xmlDoc.createProcessingInstruction(\"abc\", \"def\") must inherit property \"replace\" with the proper type (11)": true, "CharacterData interface: xmlDoc.createProcessingInstruction(\"abc\", \"def\") must inherit property \"replace\" with the proper type (9)": true,
"CharacterData interface: calling replace([object Object],[object Object]) on xmlDoc.createProcessingInstruction(\"abc\", \"def\") with too few arguments must throw TypeError": true, "CharacterData interface: calling replace([object Object],[object Object]) on xmlDoc.createProcessingInstruction(\"abc\", \"def\") with too few arguments must throw TypeError": true,
"Comment interface: existence and properties of interface object": true, "Comment interface: existence and properties of interface object": true,
"CharacterData interface: document.createComment(\"abc\") must inherit property \"before\" with the proper type (9)": true, "CharacterData interface: document.createComment(\"abc\") must inherit property \"before\" with the proper type (7)": true,
"CharacterData interface: calling before([object Object],[object Object]) on document.createComment(\"abc\") with too few arguments must throw TypeError": true, "CharacterData interface: calling before([object Object],[object Object]) on document.createComment(\"abc\") with too few arguments must throw TypeError": true,
"CharacterData interface: document.createComment(\"abc\") must inherit property \"after\" with the proper type (10)": true, "CharacterData interface: document.createComment(\"abc\") must inherit property \"after\" with the proper type (8)": true,
"CharacterData interface: calling after([object Object],[object Object]) on document.createComment(\"abc\") with too few arguments must throw TypeError": true, "CharacterData interface: calling after([object Object],[object Object]) on document.createComment(\"abc\") with too few arguments must throw TypeError": true,
"CharacterData interface: document.createComment(\"abc\") must inherit property \"replace\" with the proper type (11)": true, "CharacterData interface: document.createComment(\"abc\") must inherit property \"replace\" with the proper type (9)": true,
"CharacterData interface: calling replace([object Object],[object Object]) on document.createComment(\"abc\") with too few arguments must throw TypeError": true, "CharacterData interface: calling replace([object Object],[object Object]) on document.createComment(\"abc\") with too few arguments must throw TypeError": true,
"NodeFilter interface: existence and properties of interface object": true, "NodeFilter interface: existence and properties of interface object": true,
"NodeList interface: existence and properties of interface prototype object": true, "NodeList interface: existence and properties of interface prototype object": true,

View File

@ -109,9 +109,6 @@ Element implements ParentNode;
[NoInterfaceObject] [NoInterfaceObject]
interface ChildNode { interface ChildNode {
readonly attribute Element? previousElementSibling;
readonly attribute Element? nextElementSibling;
void before((Node or DOMString)... nodes); void before((Node or DOMString)... nodes);
void after((Node or DOMString)... nodes); void after((Node or DOMString)... nodes);
void replace((Node or DOMString)... nodes); void replace((Node or DOMString)... nodes);
@ -121,6 +118,14 @@ DocumentType implements ChildNode;
Element implements ChildNode; Element implements ChildNode;
CharacterData implements ChildNode; CharacterData implements ChildNode;
[NoInterfaceObject]
interface NonDocumentTypeChildNode {
readonly attribute Element? previousElementSibling;
readonly attribute Element? nextElementSibling;
};
Element implements NonDocumentTypeChildNode;
CharacterData implements NonDocumentTypeChildNode;
[Constructor(MutationCallback callback)] [Constructor(MutationCallback callback)]
interface MutationObserver { interface MutationObserver {
void observe(Node target, MutationObserverInit options); void observe(Node target, MutationObserverInit options);

View File

@ -28,3 +28,4 @@ interface CharacterData : Node {
}; };
CharacterData implements ChildNode; CharacterData implements ChildNode;
CharacterData implements NonDocumentTypeChildNode;

View File

@ -9,14 +9,17 @@
[NoInterfaceObject] [NoInterfaceObject]
interface ChildNode { interface ChildNode {
[Pure]
readonly attribute Element? previousElementSibling;
[Pure]
readonly attribute Element? nextElementSibling;
// Not implemented yet: // Not implemented yet:
// void before((Node or DOMString)... nodes); // void before((Node or DOMString)... nodes);
// void after((Node or DOMString)... nodes); // void after((Node or DOMString)... nodes);
// void replace((Node or DOMString)... nodes); // void replace((Node or DOMString)... nodes);
void remove(); void remove();
}; };
[NoInterfaceObject]
interface NonDocumentTypeChildNode {
[Pure]
readonly attribute Element? previousElementSibling;
[Pure]
readonly attribute Element? nextElementSibling;
};

View File

@ -189,4 +189,5 @@ partial interface Element {
}; };
Element implements ChildNode; Element implements ChildNode;
Element implements NonDocumentTypeChildNode;
Element implements ParentNode; Element implements ParentNode;