| cromwellian@google.com | 6d1abb3 | 2012-06-13 22:32:29 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
| 3 | * Copyright (C) 2007, 2009 Apple Inc. All rights reserved. |
| 4 | * |
| 5 | * This library is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU Library General Public |
| 7 | * License as published by the Free Software Foundation; either |
| 8 | * version 2 of the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This library is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * Library General Public License for more details. |
| 14 | * |
| 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 |
| 17 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 | * Boston, MA 02110-1301, USA. |
| 19 | */ |
| 20 | |
| 21 | module core { |
| 22 | |
| 23 | interface [ |
| 24 | JSGenerateIsReachable=ImplElementRoot, |
| 25 | JSCustomMarkFunction, |
| 26 | IndexedGetter, |
| 27 | NamedGetter, |
| 28 | V8CustomToJSObject |
| 29 | ] NamedNodeMap { |
| 30 | |
| 31 | Node getNamedItem(in [Optional=DefaultIsUndefined] DOMString name); |
| 32 | |
| 33 | Node setNamedItem(in [Optional=DefaultIsUndefined] Node node) |
| 34 | raises(DOMException); |
| 35 | |
| 36 | Node removeNamedItem(in [Optional=DefaultIsUndefined] DOMString name) |
| 37 | raises(DOMException); |
| 38 | |
| 39 | Node item(in [Optional=DefaultIsUndefined] unsigned long index); |
| 40 | |
| 41 | readonly attribute unsigned long length; |
| 42 | |
| 43 | |
| 44 | // Introduced in DOM Level 2: |
| 45 | |
| 46 | [ObjCLegacyUnnamedParameters] Node getNamedItemNS(in [TreatNullAs=NullString,Optional=DefaultIsUndefined] DOMString namespaceURI, |
| 47 | in [Optional=DefaultIsUndefined] DOMString localName) |
| 48 | // FIXME: the implementation does take an exceptioncode parameter. |
| 49 | /*raises(DOMException)*/; |
| 50 | |
| 51 | Node setNamedItemNS(in [Optional=DefaultIsUndefined] Node node) |
| 52 | raises(DOMException); |
| 53 | |
| 54 | [ObjCLegacyUnnamedParameters] Node removeNamedItemNS(in [TreatNullAs=NullString,Optional=DefaultIsUndefined] DOMString namespaceURI, |
| 55 | in [Optional=DefaultIsUndefined] DOMString localName) |
| 56 | raises(DOMException); |
| 57 | |
| 58 | }; |
| 59 | |
| 60 | } |