2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
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.
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.
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.
25 GenerateNativeConverter
,
26 InlineGetOwnPropertySlot
,
27 InterfaceUUID
=FEFE9C21
-E58C
-4b5b
-821A
-61A514613763
,
28 ImplementationUUID
=12E5B08E
-A680
-4baf
-9D1E
-108AEF7ABBFB
29 ] Element
: EventTargetNode
{
33 readonly attribute
[ConvertNullStringTo
=Null
] DOMString tagName
;
35 [ConvertNullStringTo
=Null
] DOMString getAttribute
(in DOMString name
);
36 [OldStyleObjC
, Custom] void setAttribute
(in DOMString name
,
39 void removeAttribute
(in DOMString name
)
41 Attr getAttributeNode
(in DOMString name
);
42 [Custom] Attr setAttributeNode
(in Attr newAttr
)
44 Attr removeAttributeNode
(in Attr oldAttr
)
46 NodeList getElementsByTagName
(in DOMString name
);
50 [OldStyleObjC
] DOMString getAttributeNS
(in [ConvertNullToNullString
] DOMString namespaceURI
,
51 in DOMString localName
);
52 [OldStyleObjC
, Custom] void setAttributeNS
(in [ConvertNullToNullString
] DOMString namespaceURI
,
53 in DOMString qualifiedName
,
56 [OldStyleObjC
] void removeAttributeNS
(in [ConvertNullToNullString
] DOMString namespaceURI
,
57 in DOMString localName
)
59 [OldStyleObjC
] NodeList getElementsByTagNameNS
(in [ConvertNullToNullString
] DOMString namespaceURI
,
60 in DOMString localName
);
61 [OldStyleObjC
] Attr getAttributeNodeNS
(in [ConvertNullToNullString
] DOMString namespaceURI
,
62 in DOMString localName
);
63 [Custom] Attr setAttributeNodeNS
(in Attr newAttr
)
65 boolean hasAttribute
(in DOMString name
);
66 [OldStyleObjC
] boolean hasAttributeNS
(in [ConvertNullToNullString
] DOMString namespaceURI
,
67 in DOMString localName
);
69 #if
!defined
(LANGUAGE_COM
)
70 readonly attribute CSSStyleDeclaration style
;
75 readonly attribute
long offsetLeft
;
76 readonly attribute
long offsetTop
;
77 readonly attribute
long offsetWidth
;
78 readonly attribute
long offsetHeight
;
79 readonly attribute Element offsetParent
;
80 readonly attribute
long clientLeft
;
81 readonly attribute
long clientTop
;
82 readonly attribute
long clientWidth
;
83 readonly attribute
long clientHeight
;
84 attribute
long scrollLeft
;
85 attribute
long scrollTop
;
86 readonly attribute
long scrollWidth
;
87 readonly attribute
long scrollHeight
;
91 void scrollIntoView
(in [Optional] boolean alignWithTop
);
95 boolean contains
(in Element element
);
99 void scrollIntoViewIfNeeded
(in [Optional] boolean centerIfNeeded
);
100 void scrollByLines
(in long lines
);
101 void scrollByPages
(in long pages
);
104 NodeList getElementsByClassName
(in DOMString name
);
106 // NodeSelector - Selector API
107 Element querySelector
(in [ConvertUndefinedOrNullToNullString
] DOMString selectors
)
108 raises
(DOMException
);
109 NodeList querySelectorAll
(in [ConvertUndefinedOrNullToNullString
] DOMString selectors
)
110 raises
(DOMException
);
112 // ElementTraversal API
113 #if
!defined
(LANGUAGE_COM
)
114 readonly attribute Element firstElementChild
;
115 readonly attribute Element lastElementChild
;
116 readonly attribute Element previousElementSibling
;
117 readonly attribute Element nextElementSibling
;
118 readonly attribute
unsigned long childElementCount
;
121 #if defined
(LANGUAGE_OBJECTIVE_C
)
122 // Objective-C extensions
123 readonly attribute DOMString innerText
;