OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 19 matching lines...) Expand all Loading... |
30 // FIXME: CDATASection has been removed from the spec. crbug.com/437205 | 30 // FIXME: CDATASection has been removed from the spec. crbug.com/437205 |
31 const unsigned short CDATA_SECTION_NODE = 4; | 31 const unsigned short CDATA_SECTION_NODE = 4; |
32 const unsigned short ENTITY_REFERENCE_NODE = 5; // historical | 32 const unsigned short ENTITY_REFERENCE_NODE = 5; // historical |
33 const unsigned short ENTITY_NODE = 6; // historical | 33 const unsigned short ENTITY_NODE = 6; // historical |
34 const unsigned short PROCESSING_INSTRUCTION_NODE = 7; | 34 const unsigned short PROCESSING_INSTRUCTION_NODE = 7; |
35 const unsigned short COMMENT_NODE = 8; | 35 const unsigned short COMMENT_NODE = 8; |
36 const unsigned short DOCUMENT_NODE = 9; | 36 const unsigned short DOCUMENT_NODE = 9; |
37 const unsigned short DOCUMENT_TYPE_NODE = 10; | 37 const unsigned short DOCUMENT_TYPE_NODE = 10; |
38 const unsigned short DOCUMENT_FRAGMENT_NODE = 11; | 38 const unsigned short DOCUMENT_FRAGMENT_NODE = 11; |
39 const unsigned short NOTATION_NODE = 12; // historical | 39 const unsigned short NOTATION_NODE = 12; // historical |
40 readonly attribute unsigned short nodeType; | 40 [ImplementedAs=getNodeType] readonly attribute unsigned short nodeType; |
41 readonly attribute DOMString nodeName; | 41 readonly attribute DOMString nodeName; |
42 | 42 |
43 readonly attribute DOMString? baseURI; | 43 readonly attribute DOMString? baseURI; |
44 | 44 |
45 [PerWorldBindings] readonly attribute Document? ownerDocument; | 45 [PerWorldBindings] readonly attribute Document? ownerDocument; |
46 [PerWorldBindings] readonly attribute Node? parentNode; | 46 [PerWorldBindings] readonly attribute Node? parentNode; |
47 [PerWorldBindings] readonly attribute Element? parentElement; | 47 [PerWorldBindings] readonly attribute Element? parentElement; |
48 [ImplementedAs=hasChildren] boolean hasChildNodes(); | 48 [ImplementedAs=hasChildren] boolean hasChildNodes(); |
49 [SameObject, PerWorldBindings] readonly attribute NodeList childNodes; | 49 [SameObject, PerWorldBindings] readonly attribute NodeList childNodes; |
50 [PerWorldBindings] readonly attribute Node? firstChild; | 50 [PerWorldBindings] readonly attribute Node? firstChild; |
(...skipping 25 matching lines...) Expand all Loading... |
76 | 76 |
77 [CustomElementCallbacks, PerWorldBindings, RaisesException] Node insertBefor
e(Node node, Node? child); | 77 [CustomElementCallbacks, PerWorldBindings, RaisesException] Node insertBefor
e(Node node, Node? child); |
78 [CustomElementCallbacks, PerWorldBindings, RaisesException] Node appendChild
(Node node); | 78 [CustomElementCallbacks, PerWorldBindings, RaisesException] Node appendChild
(Node node); |
79 [CustomElementCallbacks, PerWorldBindings, RaisesException] Node replaceChil
d(Node node, Node child); | 79 [CustomElementCallbacks, PerWorldBindings, RaisesException] Node replaceChil
d(Node node, Node child); |
80 [CustomElementCallbacks, RaisesException] Node removeChild(Node child); | 80 [CustomElementCallbacks, RaisesException] Node removeChild(Node child); |
81 | 81 |
82 // FIXME: isSameNode has been removed from the spec: | 82 // FIXME: isSameNode has been removed from the spec: |
83 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=27424 | 83 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=27424 |
84 [MeasureAs=NodeIsSameNode] boolean isSameNode(Node? other); | 84 [MeasureAs=NodeIsSameNode] boolean isSameNode(Node? other); |
85 }; | 85 }; |
OLD | NEW |