OLD | NEW |
(Empty) | |
| 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 module html { |
| 22 |
| 23 interface [ |
| 24 JSGenerateToNativeObject, |
| 25 JSCustomPushEventHandlerScope, |
| 26 V8CustomToJSObject |
| 27 ] HTMLElement : Element { |
| 28 // iht.com relies on id returning the empty string when no id i
s present. |
| 29 // Other browsers do this as well. So we don't convert null to
JS null. |
| 30 attribute [Reflect] DOMString id; |
| 31 attribute [Reflect] DOMString title; |
| 32 attribute [Reflect] DOMString lang; |
| 33 attribute boolean translate; |
| 34 attribute [Reflect] DOMString dir; |
| 35 attribute [Reflect=class] DOMString className; |
| 36 readonly attribute DOMTokenList classList; |
| 37 |
| 38 attribute long tabIndex; |
| 39 attribute boolean draggable; |
| 40 attribute [Reflect] DOMString webkitdropzone; |
| 41 attribute [Reflect] boolean hidden; |
| 42 attribute [Reflect] DOMString accessKey; |
| 43 |
| 44 // Extensions |
| 45 attribute [TreatNullAs=NullString] DOMString innerHTML |
| 46 setter raises(DOMException); |
| 47 attribute [TreatNullAs=NullString] DOMString innerText |
| 48 setter raises(DOMException); |
| 49 attribute [TreatNullAs=NullString] DOMString outerHTML |
| 50 setter raises(DOMException); |
| 51 attribute [TreatNullAs=NullString] DOMString outerText |
| 52 setter raises(DOMException); |
| 53 |
| 54 Element insertAdjacentElement(in [Optional=DefaultIsUndefined] DOMString
where, |
| 55 in [Optional=DefaultIsUndefined] Element e
lement) |
| 56 raises(DOMException); |
| 57 void insertAdjacentHTML(in [Optional=DefaultIsUndefined] DOMString where
, |
| 58 in [Optional=DefaultIsUndefined] DOMString html) |
| 59 raises(DOMException); |
| 60 void insertAdjacentText(in [Optional=DefaultIsUndefined] DOMString where
, |
| 61 in [Optional=DefaultIsUndefined] DOMString text) |
| 62 raises(DOMException); |
| 63 |
| 64 readonly attribute HTMLCollection children; |
| 65 |
| 66 attribute [TreatNullAs=NullString] DOMString contentEditable |
| 67 setter raises(DOMException); |
| 68 readonly attribute boolean isContentEditable; |
| 69 |
| 70 attribute boolean spellcheck; |
| 71 |
| 72 #if !defined(LANGUAGE_OBJECTIVE_C) || !LANGUAGE_OBJECTIVE_C // No Objective-C bi
ndings yet. |
| 73 attribute [Conditional=MICRODATA, Reflect] boolean itemScope; |
| 74 readonly attribute [Conditional=MICRODATA] DOMSettableTokenList itemType
; |
| 75 attribute [Conditional=MICRODATA, Reflect, URL] DOMString itemI
d; |
| 76 |
| 77 readonly attribute [Conditional=MICRODATA] DOMSettableTokenList itemRef; |
| 78 readonly attribute [Conditional=MICRODATA] DOMSettableTokenList itemProp
; |
| 79 |
| 80 #if defined(ENABLE_MICRODATA) && ENABLE_MICRODATA |
| 81 readonly attribute [Conditional=MICRODATA] HTMLPropertiesCollection prop
erties; |
| 82 #endif |
| 83 #endif |
| 84 |
| 85 #if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP |
| 86 #if !defined(LANGUAGE_OBJECTIVE_C) || !LANGUAGE_OBJECTIVE_C |
| 87 attribute [Conditional=MICRODATA, Custom] DOMObject itemValue |
| 88 setter raises(DOMException); |
| 89 #endif |
| 90 #endif |
| 91 |
| 92 #if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C |
| 93 readonly attribute DOMString titleDisplayString; |
| 94 #endif |
| 95 |
| 96 void click(); |
| 97 }; |
| 98 |
| 99 } |
OLD | NEW |