1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/interfaces/core/nsIDOMMozNamedAttrMap.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,33 @@ 1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#include "domstubs.idl" 1.10 + 1.11 +/** 1.12 + * This is a temporary, non-standard interface, to ease the transition to a 1.13 + * world where Attr no longer inherits from Node. 1.14 + */ 1.15 + 1.16 +[scriptable, uuid(cb5564cd-26ec-418f-a6d6-1d57cd2c971c)] 1.17 +interface nsIDOMMozNamedAttrMap : nsISupports 1.18 +{ 1.19 + nsIDOMAttr getNamedItem(in DOMString name); 1.20 + nsIDOMAttr setNamedItem(in nsIDOMAttr arg) 1.21 + raises(DOMException); 1.22 + nsIDOMAttr removeNamedItem(in DOMString name) 1.23 + raises(DOMException); 1.24 + nsIDOMAttr item(in unsigned long index); 1.25 + readonly attribute unsigned long length; 1.26 + // Introduced in DOM Level 2: 1.27 + nsIDOMAttr getNamedItemNS(in DOMString namespaceURI, 1.28 + in DOMString localName); 1.29 + // Introduced in DOM Level 2: 1.30 + nsIDOMAttr setNamedItemNS(in nsIDOMAttr arg) 1.31 + raises(DOMException); 1.32 + // Introduced in DOM Level 2: 1.33 + nsIDOMAttr removeNamedItemNS(in DOMString namespaceURI, 1.34 + in DOMString localName) 1.35 + raises(DOMException); 1.36 +};