Elliott Sprehn 5e18888a0b Be more strict about attributes in sky-binder.
Instead of making all the built in attributes be global we match them to the
elements they actually apply to. I also removed a bunch of attributes that no
longer work in Sky (but haven't been removed from HTMLAttributeNames.in) yet,
or which we plan to remove.

I also removed the title property from HTMLElement. The <sky-box> widget forgot
to declare its title attribute and no error was generated because of the title
property existing on all elements. Sky doesn't have this so lets remove the API
now and clean up the C++ later.

R=ojan@chromium.org

Review URL: https://codereview.chromium.org/807243003
2015-01-16 14:41:07 -08:00

90 lines
3.1 KiB
Plaintext

/*
* 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;
// FIXME: should be:
// attribute (Dictionary or double) scrollLeft;
// attribute (Dictionary or double) scrollTop;
// http://crbug.com/240176
[Custom=Setter] attribute long scrollLeft;
[Custom=Setter] attribute long scrollTop;
readonly attribute long scrollWidth;
readonly attribute long scrollHeight;
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;
[Reflect] attribute DOMString accessKey;
[RuntimeEnabled=IMEAPI] readonly attribute InputMethodContext inputMethodContext;
[CustomElementCallbacks, RaisesException=Setter] attribute DOMString contentEditable;
readonly attribute boolean isContentEditable;
attribute boolean spellcheck;
void click();
};
Element implements ParentNode;
Element implements ChildNode;