blob: a8ad8771b466e526976884fed27cb966125e593c [file] [log] [blame]
/*
* Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved.
* Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
[
SpecialWrapFor=HTMLElement,
] interface Element : Node {
readonly attribute DOMString? tagName;
DOMString? getAttribute(DOMString name);
[RaisesException, CustomElementCallbacks] void setAttribute(DOMString name, DOMString value);
[CustomElementCallbacks] void removeAttribute(DOMString name);
boolean hasAttribute(DOMString name);
boolean hasAttributes();
sequence<Attr> getAttributes();
[PerWorldBindings] readonly attribute CSSStyleDeclaration style;
[Reflect] attribute DOMString id;
readonly attribute DOMString? localName;
[RaisesException] boolean matches(DOMString selectors);
readonly attribute long offsetLeft;
readonly attribute long offsetTop;
readonly attribute long offsetWidth;
readonly attribute long offsetHeight;
readonly attribute Element offsetParent;
readonly attribute long clientLeft;
readonly attribute long clientTop;
readonly attribute long clientWidth;
readonly attribute long clientHeight;
void focus();
void blur();
[PerWorldBindings] readonly attribute DOMTokenList classList;
[RaisesException] ShadowRoot ensureShadowRoot();
[PerWorldBindings] readonly attribute ShadowRoot shadowRoot;
NodeList getDestinationInsertionPoints();
// CSSOM View Module API
ClientRectList getClientRects();
ClientRect getBoundingClientRect();
[Reflect] attribute DOMString lang;
attribute DOMString dir;
[CustomElementCallbacks] attribute long tabIndex;
[CustomElementCallbacks, RaisesException=Setter] attribute DOMString contentEditable;
readonly attribute boolean isContentEditable;
attribute boolean spellcheck;
};
Element implements ParentNode;
Element implements ChildNode;