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 "nsIDOMEvent.idl" michael@0: michael@0: [scriptable, builtinclass, uuid(982d9800-1402-46e5-8ad2-56fb0f4905ef)] michael@0: interface nsIDOMMutationEvent : nsIDOMEvent michael@0: { michael@0: const unsigned short MODIFICATION = 1; michael@0: const unsigned short ADDITION = 2; michael@0: const unsigned short REMOVAL = 3; michael@0: michael@0: readonly attribute nsIDOMNode relatedNode; michael@0: readonly attribute DOMString prevValue; michael@0: readonly attribute DOMString newValue; michael@0: readonly attribute DOMString attrName; michael@0: readonly attribute unsigned short attrChange; michael@0: void initMutationEvent(in DOMString typeArg, michael@0: in boolean canBubbleArg, michael@0: in boolean cancelableArg, michael@0: in nsIDOMNode relatedNodeArg, michael@0: in DOMString prevValueArg, michael@0: in DOMString newValueArg, michael@0: in DOMString attrNameArg, michael@0: in unsigned short attrChangeArg); michael@0: };