OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 2 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
3 * Copyright (C) 2007, 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2007, 2009 Apple Inc. All rights reserved. |
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, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
14 * | 14 * |
15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
19 */ | 19 */ |
20 | 20 |
21 [ | 21 [ |
22 GenerateIsReachable=ImplElementRoot, | 22 GenerateIsReachable=ImplElementRoot, |
23 IndexedGetter, | 23 IndexedGetter, |
24 CustomNamedGetter, | 24 CustomNamedGetter, |
25 CustomIndexedGetter, | |
26 ImplementationLacksVTable | 25 ImplementationLacksVTable |
27 ] interface NamedNodeMap { | 26 ] interface NamedNodeMap { |
28 | 27 |
29 Node getNamedItem([Default=Undefined] optional DOMString name); | 28 Node getNamedItem([Default=Undefined] optional DOMString name); |
30 | 29 |
31 [RaisesException] Node setNamedItem([Default=Undefined] optional Node node); | 30 [RaisesException] Node setNamedItem([Default=Undefined] optional Node node); |
32 | 31 |
33 [RaisesException] Node removeNamedItem([Default=Undefined] optional DOMStrin
g name); | 32 [RaisesException] Node removeNamedItem([Default=Undefined] optional DOMStrin
g name); |
34 | 33 |
35 Node item([Default=Undefined] optional unsigned long index); | 34 Node item([Default=Undefined] optional unsigned long index); |
36 | 35 |
37 readonly attribute unsigned long length; | 36 readonly attribute unsigned long length; |
38 | 37 |
39 | 38 |
40 // Introduced in DOM Level 2: | 39 // Introduced in DOM Level 2: |
41 | 40 |
42 // FIXME: the implementation does take an exceptioncode parameter. | 41 // FIXME: the implementation does take an exceptioncode parameter. |
43 /*[RaisesException]*/ Node getNamedItemNS([TreatNullAs=NullString,Default=Un
defined] optional DOMString namespaceURI, | 42 /*[RaisesException]*/ Node getNamedItemNS([TreatNullAs=NullString,Default=Un
defined] optional DOMString namespaceURI, |
44 [Default=Undefined] optional DOMSt
ring localName); | 43 [Default=Undefined] optional DOMSt
ring localName); |
45 | 44 |
46 [RaisesException] Node setNamedItemNS([Default=Undefined] optional Node node
); | 45 [RaisesException] Node setNamedItemNS([Default=Undefined] optional Node node
); |
47 | 46 |
48 [RaisesException] Node removeNamedItemNS([TreatNullAs=NullString,Default=Un
defined] optional DOMString namespaceURI, | 47 [RaisesException] Node removeNamedItemNS([TreatNullAs=NullString,Default=Un
defined] optional DOMString namespaceURI, |
49 [Default=Undefined] optional DOMString
localName); | 48 [Default=Undefined] optional DOMString
localName); |
50 | 49 |
51 }; | 50 }; |
52 | 51 |
OLD | NEW |