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, | |
24 CustomNamedGetter, | 23 CustomNamedGetter, |
25 ImplementationLacksVTable | 24 ImplementationLacksVTable |
26 ] interface NamedNodeMap { | 25 ] interface NamedNodeMap { |
27 | 26 |
28 Node getNamedItem([Default=Undefined] optional DOMString name); | 27 Node getNamedItem([Default=Undefined] optional DOMString name); |
29 | 28 |
30 [RaisesException] Node setNamedItem([Default=Undefined] optional Node node); | 29 [RaisesException] Node setNamedItem([Default=Undefined] optional Node node); |
31 | 30 |
32 [RaisesException] Node removeNamedItem([Default=Undefined] optional DOMStrin
g name); | 31 [RaisesException] Node removeNamedItem([Default=Undefined] optional DOMStrin
g name); |
33 | 32 |
34 Node item([Default=Undefined] optional unsigned long index); | 33 getter Node item([Default=Undefined] optional unsigned long index); |
35 | 34 |
36 readonly attribute unsigned long length; | 35 readonly attribute unsigned long length; |
37 | 36 |
38 | 37 |
39 // Introduced in DOM Level 2: | 38 // Introduced in DOM Level 2: |
40 | 39 |
41 // FIXME: the implementation does take an exceptioncode parameter. | 40 // FIXME: the implementation does take an exceptioncode parameter. |
42 /*[RaisesException]*/ Node getNamedItemNS([TreatNullAs=NullString,Default=Un
defined] optional DOMString namespaceURI, | 41 /*[RaisesException]*/ Node getNamedItemNS([TreatNullAs=NullString,Default=Un
defined] optional DOMString namespaceURI, |
43 [Default=Undefined] optional DOMSt
ring localName); | 42 [Default=Undefined] optional DOMSt
ring localName); |
44 | 43 |
45 [RaisesException] Node setNamedItemNS([Default=Undefined] optional Node node
); | 44 [RaisesException] Node setNamedItemNS([Default=Undefined] optional Node node
); |
46 | 45 |
47 [RaisesException] Node removeNamedItemNS([TreatNullAs=NullString,Default=Un
defined] optional DOMString namespaceURI, | 46 [RaisesException] Node removeNamedItemNS([TreatNullAs=NullString,Default=Un
defined] optional DOMString namespaceURI, |
48 [Default=Undefined] optional DOMString
localName); | 47 [Default=Undefined] optional DOMString
localName); |
49 | 48 |
50 }; | 49 }; |
51 | 50 |
OLD | NEW |