1/* 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Library General Public 7 * License as published by the Free Software Foundation; either 8 * version 2 of the License, or (at your option) any later version. 9 * 10 * This library is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Library General Public License for more details. 14 * 15 * You should have received a copy of the GNU Library General Public License 16 * along with this library; see the file COPYING.LIB. If not, write to 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 18 * Boston, MA 02110-1301, USA. 19 */ 20 21[ 22 JSGenerateToNativeObject, 23 JSCustomPushEventHandlerScope, 24] interface HTMLElement : Element { 25 // iht.com relies on id returning the empty string when no id is present. 26 // Other browsers do this as well. So we don't convert null to JS null. 27 [Reflect] attribute DOMString id; 28 [Reflect] attribute DOMString title; 29 [Reflect] attribute DOMString lang; 30 attribute boolean translate; 31 [Reflect] attribute DOMString dir; 32 33 attribute long tabIndex; 34 attribute boolean draggable; 35 [Reflect] attribute DOMString webkitdropzone; 36 [Reflect] attribute boolean hidden; 37 [Reflect] attribute DOMString accessKey; 38 39 // Extensions 40 [TreatNullAs=NullString, SetterRaisesException] attribute DOMString innerHTML; 41 [TreatNullAs=NullString, SetterRaisesException] attribute DOMString innerText; 42 [TreatNullAs=NullString, SetterRaisesException] attribute DOMString outerHTML; 43 [TreatNullAs=NullString, SetterRaisesException] attribute DOMString outerText; 44 45 [RaisesException] Element insertAdjacentElement([Default=Undefined] optional DOMString where, 46 [Default=Undefined] optional Element element); 47 [RaisesException] void insertAdjacentHTML([Default=Undefined] optional DOMString where, 48 [Default=Undefined] optional DOMString html); 49 [RaisesException] void insertAdjacentText([Default=Undefined] optional DOMString where, 50 [Default=Undefined] optional DOMString text); 51 52 readonly attribute HTMLCollection children; 53 54 [TreatNullAs=NullString, SetterRaisesException] attribute DOMString contentEditable; 55 readonly attribute boolean isContentEditable; 56 57 attribute boolean spellcheck; 58 59#if !defined(LANGUAGE_OBJECTIVE_C) || !LANGUAGE_OBJECTIVE_C // No Objective-C bindings yet. 60 [Conditional=MICRODATA, Reflect] attribute boolean itemScope; 61 [Conditional=MICRODATA] readonly attribute DOMSettableTokenList itemType; 62 [Conditional=MICRODATA, Reflect, URL] attribute DOMString itemId; 63 64 [Conditional=MICRODATA] readonly attribute DOMSettableTokenList itemRef; 65 [Conditional=MICRODATA] readonly attribute DOMSettableTokenList itemProp; 66 67 [Conditional=MICRODATA] readonly attribute HTMLPropertiesCollection properties; 68#endif 69 70#if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP 71#if !defined(LANGUAGE_OBJECTIVE_C) || !LANGUAGE_OBJECTIVE_C 72 [Conditional=MICRODATA, Custom, SetterRaisesException] attribute any itemValue; 73#endif 74#endif 75 76#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C 77 readonly attribute DOMString titleDisplayString; 78#endif 79 80 void click(); 81}; 82 83