michael@0: /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsIDOMNode.idl" michael@0: michael@0: /** michael@0: * The nsIDOMAttr interface represents an attribute in an "Element" object. michael@0: * Typically the allowable values for the attribute are defined in a document michael@0: * type definition. michael@0: * michael@0: * For more information on this interface please see michael@0: * http://www.w3.org/TR/DOM-Level-2-Core/ michael@0: */ michael@0: michael@0: [scriptable, builtinclass, uuid(a974a4d3-2ff1-445b-8b8e-0aada5d4eedc)] michael@0: interface nsIDOMAttr : nsIDOMNode michael@0: { michael@0: readonly attribute DOMString name; michael@0: readonly attribute boolean specified; michael@0: attribute DOMString value; michael@0: // raises(DOMException) on setting michael@0: michael@0: // Introduced in DOM Level 2: michael@0: readonly attribute nsIDOMElement ownerElement; michael@0: michael@0: readonly attribute boolean isId; michael@0: };