1// Copyright (C) 2006, 2007 Apple Inc.  All rights reserved.
2// Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
3//
4// Redistribution and use in source and binary forms, with or without
5// modification, are permitted provided that the following conditions
6// are met:
7// 1. Redistributions of source code must retain the above copyright
8//    notice, this list of conditions and the following disclaimer.
9// 2. Redistributions in binary form must reproduce the above copyright
10//    notice, this list of conditions and the following disclaimer in the
11//    documentation and/or other materials provided with the distribution.
12//
13// THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
14// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16// PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
17// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24
25// This file is used by bindings/scripts/CodeGeneratorObjC.pm to determine public API.
26// All public DOM class interfaces, properties and methods need to be in this file.
27// Anything not in the file will be generated into the appropriate private header file.
28
29#ifndef OBJC_CODE_GENERATION
30#error Do not include this header, instead include the appropriate DOM header.
31#endif
32
33@interface DOMAttr : DOMNode WEBKIT_VERSION_1_3
34@property(readonly, copy) NSString *name;
35@property(readonly) BOOL specified;
36@property(copy) NSString *value;
37@property(readonly, retain) DOMElement *ownerElement;
38@property(readonly, retain) DOMCSSStyleDeclaration *style AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
39@end
40
41@interface DOMCDATASection : DOMText WEBKIT_VERSION_1_3
42@end
43
44@interface DOMCharacterData : DOMNode WEBKIT_VERSION_1_3
45@property(copy) NSString *data;
46@property(readonly) unsigned length;
47- (NSString *)substringData:(unsigned)offset :(unsigned)length;
48- (NSString *)substringData:(unsigned)offset length:(unsigned)length AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
49- (void)appendData:(NSString *)data;
50- (void)insertData:(unsigned)offset :(NSString *)data;
51- (void)deleteData:(unsigned)offset :(unsigned)length;
52- (void)replaceData:(unsigned)offset :(unsigned)length :(NSString *)data;
53- (void)insertData:(unsigned)offset data:(NSString *)data AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
54- (void)deleteData:(unsigned)offset length:(unsigned)length AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
55- (void)replaceData:(unsigned)offset length:(unsigned)length data:(NSString *)data AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
56@end
57
58@interface DOMComment : DOMCharacterData WEBKIT_VERSION_1_3
59@end
60
61@interface DOMImplementation : DOMObject WEBKIT_VERSION_1_3
62- (BOOL)hasFeature:(NSString *)feature :(NSString *)version;
63- (DOMDocumentType *)createDocumentType:(NSString *)qualifiedName :(NSString *)publicId :(NSString *)systemId;
64- (DOMDocument *)createDocument:(NSString *)namespaceURI :(NSString *)qualifiedName :(DOMDocumentType *)doctype;
65- (DOMCSSStyleSheet *)createCSSStyleSheet:(NSString *)title :(NSString *)media;
66- (BOOL)hasFeature:(NSString *)feature version:(NSString *)version AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
67- (DOMDocumentType *)createDocumentType:(NSString *)qualifiedName publicId:(NSString *)publicId systemId:(NSString *)systemId AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
68- (DOMDocument *)createDocument:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName doctype:(DOMDocumentType *)doctype AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
69- (DOMCSSStyleSheet *)createCSSStyleSheet:(NSString *)title media:(NSString *)media AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
70- (DOMHTMLDocument *)createHTMLDocument:(NSString *)title AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
71@end
72
73@interface DOMAbstractView : DOMObject WEBKIT_VERSION_1_3
74@property(readonly, retain) DOMDocument *document;
75@end
76
77@interface DOMDocument : DOMNode WEBKIT_VERSION_1_3
78@property(readonly, retain) DOMDocumentType *doctype;
79@property(readonly, retain) DOMImplementation *implementation;
80@property(readonly, retain) DOMElement *documentElement;
81@property(readonly, retain) DOMAbstractView *defaultView;
82@property(readonly, retain) DOMStyleSheetList *styleSheets;
83@property(readonly, retain) DOMHTMLCollection *images;
84@property(readonly, retain) DOMHTMLCollection *applets;
85@property(readonly, retain) DOMHTMLCollection *links;
86@property(readonly, retain) DOMHTMLCollection *forms;
87@property(readonly, retain) DOMHTMLCollection *anchors;
88@property(copy) NSString *title;
89@property(readonly, copy) NSString *referrer;
90@property(readonly, copy) NSString *domain;
91@property(readonly, copy) NSString *URL;
92@property(retain) DOMHTMLElement *body;
93@property(copy) NSString *cookie;
94@property(readonly, copy) NSString *inputEncoding AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
95@property(readonly, copy) NSString *xmlEncoding AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
96@property(copy) NSString *xmlVersion AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
97@property BOOL xmlStandalone AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
98@property(copy) NSString *documentURI AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
99@property(copy) NSString *charset AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
100@property(readonly, copy) NSString *defaultCharset AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
101@property(readonly, copy) NSString *readyState AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
102@property(readonly, copy) NSString *characterSet AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
103@property(readonly, copy) NSString *preferredStylesheetSet AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
104@property(copy) NSString *selectedStylesheetSet AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
105@property(readonly, copy) NSString *lastModified AVAILABLE_IN_WEBKIT_VERSION_4_0;
106- (DOMElement *)createElement:(NSString *)tagName;
107- (DOMDocumentFragment *)createDocumentFragment;
108- (DOMText *)createTextNode:(NSString *)data;
109- (DOMComment *)createComment:(NSString *)data;
110- (DOMCDATASection *)createCDATASection:(NSString *)data;
111- (DOMProcessingInstruction *)createProcessingInstruction:(NSString *)target :(NSString *)data;
112- (DOMProcessingInstruction *)createProcessingInstruction:(NSString *)target data:(NSString *)data AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
113- (DOMAttr *)createAttribute:(NSString *)name;
114- (DOMEntityReference *)createEntityReference:(NSString *)name;
115- (DOMNodeList *)getElementsByTagName:(NSString *)tagname;
116- (DOMNode *)importNode:(DOMNode *)importedNode :(BOOL)deep;
117- (DOMElement *)createElementNS:(NSString *)namespaceURI :(NSString *)qualifiedName;
118- (DOMAttr *)createAttributeNS:(NSString *)namespaceURI :(NSString *)qualifiedName;
119- (DOMNodeList *)getElementsByTagNameNS:(NSString *)namespaceURI :(NSString *)localName;
120- (DOMNode *)importNode:(DOMNode *)importedNode deep:(BOOL)deep AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
121- (DOMNode *)adoptNode:(DOMNode *)source AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
122- (DOMElement *)createElementNS:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
123- (DOMAttr *)createAttributeNS:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
124- (DOMNodeList *)getElementsByTagNameNS:(NSString *)namespaceURI localName:(NSString *)localName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
125- (DOMElement *)getElementById:(NSString *)elementId;
126- (DOMEvent *)createEvent:(NSString *)eventType;
127- (DOMRange *)createRange;
128- (DOMCSSStyleDeclaration *)createCSSStyleDeclaration AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
129- (DOMCSSStyleDeclaration *)getOverrideStyle:(DOMElement *)element :(NSString *)pseudoElement;
130- (DOMCSSStyleDeclaration *)getOverrideStyle:(DOMElement *)element pseudoElement:(NSString *)pseudoElement AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
131- (DOMCSSStyleDeclaration *)getComputedStyle:(DOMElement *)element :(NSString *)pseudoElement;
132- (DOMCSSStyleDeclaration *)getComputedStyle:(DOMElement *)element pseudoElement:(NSString *)pseudoElement AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
133- (DOMCSSRuleList *)getMatchedCSSRules:(DOMElement *)element pseudoElement:(NSString *)pseudoElement AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
134- (DOMCSSRuleList *)getMatchedCSSRules:(DOMElement *)element pseudoElement:(NSString *)pseudoElement authorOnly:(BOOL)authorOnly AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
135- (DOMNodeList *)getElementsByName:(NSString *)elementName;
136- (DOMNodeIterator *)createNodeIterator:(DOMNode *)root whatToShow:(unsigned)whatToShow filter:(id <DOMNodeFilter>)filter expandEntityReferences:(BOOL)expandEntityReferences AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
137- (DOMTreeWalker *)createTreeWalker:(DOMNode *)root whatToShow:(unsigned)whatToShow filter:(id <DOMNodeFilter>)filter expandEntityReferences:(BOOL)expandEntityReferences AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
138- (DOMNodeIterator *)createNodeIterator:(DOMNode *)root :(unsigned)whatToShow :(id <DOMNodeFilter>)filter :(BOOL)expandEntityReferences;
139- (DOMTreeWalker *)createTreeWalker:(DOMNode *)root :(unsigned)whatToShow :(id <DOMNodeFilter>)filter :(BOOL)expandEntityReferences;
140#if ENABLE_XPATH
141- (DOMXPathExpression *)createExpression:(NSString *)expression :(id <DOMXPathNSResolver>)resolver AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER_BUT_DEPRECATED;
142- (DOMXPathExpression *)createExpression:(NSString *)expression resolver:(id <DOMXPathNSResolver>)resolver AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
143- (id <DOMXPathNSResolver>)createNSResolver:(DOMNode *)nodeResolver AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
144- (DOMXPathResult *)evaluate:(NSString *)expression :(DOMNode *)contextNode :(id <DOMXPathNSResolver>)resolver :(unsigned short)type :(DOMXPathResult *)inResult AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER_BUT_DEPRECATED;
145- (DOMXPathResult *)evaluate:(NSString *)expression contextNode:(DOMNode *)contextNode resolver:(id <DOMXPathNSResolver>)resolver type:(unsigned short)type inResult:(DOMXPathResult *)inResult AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
146#endif
147- (BOOL)execCommand:(NSString *)command userInterface:(BOOL)userInterface value:(NSString *)value AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
148- (BOOL)execCommand:(NSString *)command userInterface:(BOOL)userInterface AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
149- (BOOL)execCommand:(NSString *)command AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
150- (BOOL)queryCommandEnabled:(NSString *)command AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
151- (BOOL)queryCommandIndeterm:(NSString *)command AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
152- (BOOL)queryCommandState:(NSString *)command AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
153- (BOOL)queryCommandSupported:(NSString *)command AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
154- (NSString *)queryCommandValue:(NSString *)command AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
155- (DOMElement *)elementFromPoint:(int)x y:(int)y AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
156- (DOMNodeList *)getElementsByClassName:(NSString *)tagname AVAILABLE_IN_WEBKIT_VERSION_4_0;
157- (DOMElement *)querySelector:(NSString *)selectors AVAILABLE_IN_WEBKIT_VERSION_4_0;
158- (DOMNodeList *)querySelectorAll:(NSString *)selectors AVAILABLE_IN_WEBKIT_VERSION_4_0;
159#if defined(ENABLE_FULLSCREEN_API) && ENABLE_FULLSCREEN_API
160- (void)webkitCancelFullScreen AVAILABLE_IN_WEBKIT_VERSION_4_0;
161#endif
162@end
163
164@interface DOMDocumentFragment : DOMNode WEBKIT_VERSION_1_3
165@end
166
167@interface DOMDocumentType : DOMNode WEBKIT_VERSION_1_3
168@property(readonly, copy) NSString *name;
169@property(readonly, retain) DOMNamedNodeMap *entities;
170@property(readonly, retain) DOMNamedNodeMap *notations;
171@property(readonly, copy) NSString *publicId;
172@property(readonly, copy) NSString *systemId;
173@property(readonly, copy) NSString *internalSubset;
174@end
175
176@interface DOMElement : DOMNode WEBKIT_VERSION_1_3
177@property(readonly, copy) NSString *tagName;
178@property(readonly, retain) DOMCSSStyleDeclaration *style;
179@property(readonly) int offsetLeft;
180@property(readonly) int offsetTop;
181@property(readonly) int offsetWidth;
182@property(readonly) int offsetHeight;
183@property(readonly, retain) DOMElement *offsetParent;
184@property(readonly) int clientWidth;
185@property(readonly) int clientHeight;
186@property int scrollLeft;
187@property int scrollTop;
188@property(readonly) int scrollWidth;
189@property(readonly) int scrollHeight;
190@property(readonly) int clientLeft AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
191@property(readonly) int clientTop AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
192@property(readonly, copy) NSString *innerText AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
193@property(readonly, retain) DOMElement *firstElementChild AVAILABLE_IN_WEBKIT_VERSION_4_0;
194@property(readonly, retain) DOMElement *lastElementChild AVAILABLE_IN_WEBKIT_VERSION_4_0;
195@property(readonly, retain) DOMElement *previousElementSibling AVAILABLE_IN_WEBKIT_VERSION_4_0;
196@property(readonly, retain) DOMElement *nextElementSibling AVAILABLE_IN_WEBKIT_VERSION_4_0;
197@property(readonly) unsigned childElementCount AVAILABLE_IN_WEBKIT_VERSION_4_0;
198- (NSString *)getAttribute:(NSString *)name;
199- (void)setAttribute:(NSString *)name :(NSString *)value;
200- (void)setAttribute:(NSString *)name value:(NSString *)value AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
201- (void)removeAttribute:(NSString *)name;
202- (DOMAttr *)getAttributeNode:(NSString *)name;
203- (DOMAttr *)setAttributeNode:(DOMAttr *)newAttr;
204- (DOMAttr *)removeAttributeNode:(DOMAttr *)oldAttr;
205- (DOMNodeList *)getElementsByTagName:(NSString *)name;
206- (NSString *)getAttributeNS:(NSString *)namespaceURI :(NSString *)localName;
207- (void)setAttributeNS:(NSString *)namespaceURI :(NSString *)qualifiedName :(NSString *)value;
208- (void)removeAttributeNS:(NSString *)namespaceURI :(NSString *)localName;
209- (DOMNodeList *)getElementsByTagNameNS:(NSString *)namespaceURI :(NSString *)localName;
210- (DOMAttr *)getAttributeNodeNS:(NSString *)namespaceURI :(NSString *)localName;
211- (NSString *)getAttributeNS:(NSString *)namespaceURI localName:(NSString *)localName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
212- (void)setAttributeNS:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName value:(NSString *)value AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
213- (void)removeAttributeNS:(NSString *)namespaceURI localName:(NSString *)localName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
214- (DOMNodeList *)getElementsByTagNameNS:(NSString *)namespaceURI localName:(NSString *)localName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
215- (DOMAttr *)getAttributeNodeNS:(NSString *)namespaceURI localName:(NSString *)localName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
216- (DOMAttr *)setAttributeNodeNS:(DOMAttr *)newAttr;
217- (BOOL)hasAttribute:(NSString *)name;
218- (BOOL)hasAttributeNS:(NSString *)namespaceURI :(NSString *)localName;
219- (BOOL)hasAttributeNS:(NSString *)namespaceURI localName:(NSString *)localName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
220- (void)scrollIntoView:(BOOL)alignWithTop AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
221- (void)scrollIntoViewIfNeeded:(BOOL)centerIfNeeded AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
222- (BOOL)contains:(DOMElement *)element AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
223- (void)scrollByLines:(int)lines AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
224- (void)scrollByPages:(int)pages AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
225- (void)focus AVAILABLE_IN_WEBKIT_VERSION_4_0;
226- (void)blur AVAILABLE_IN_WEBKIT_VERSION_4_0;
227- (DOMNodeList *)getElementsByClassName:(NSString *)name AVAILABLE_IN_WEBKIT_VERSION_4_0;
228- (DOMElement *)querySelector:(NSString *)selectors AVAILABLE_IN_WEBKIT_VERSION_4_0;
229- (DOMNodeList *)querySelectorAll:(NSString *)selectors AVAILABLE_IN_WEBKIT_VERSION_4_0;
230#if defined(ENABLE_FULLSCREEN_API) && ENABLE_FULLSCREEN_API
231- (void)webkitRequestFullScreen:(unsigned short)flags AVAILABLE_IN_WEBKIT_VERSION_4_0;
232#endif
233@end
234
235@interface DOMEntity : DOMNode WEBKIT_VERSION_1_3
236@property(readonly, copy) NSString *publicId;
237@property(readonly, copy) NSString *systemId;
238@property(readonly, copy) NSString *notationName;
239@end
240
241@interface DOMEntityReference : DOMNode WEBKIT_VERSION_1_3
242@end
243
244@interface DOMBlob : DOMObject WEBKIT_VERSION_4_0
245@property(readonly) unsigned long long size;
246@end
247
248@interface DOMFile : DOMBlob WEBKIT_VERSION_4_0
249@property(readonly, copy) NSString *name;
250
251// FIXME: obsolete properties. To be removed.
252@property(readonly, copy) NSString *fileName;
253@property(readonly) unsigned long long fileSize;
254@end
255
256@interface DOMFileList : DOMObject WEBKIT_VERSION_4_0
257@property(readonly) unsigned length;
258- (DOMFile *)item:(unsigned)index;
259@end
260
261@interface DOMNamedNodeMap : DOMObject WEBKIT_VERSION_1_3
262@property(readonly) unsigned length;
263- (DOMNode *)getNamedItem:(NSString *)name;
264- (DOMNode *)setNamedItem:(DOMNode *)node;
265- (DOMNode *)removeNamedItem:(NSString *)name;
266- (DOMNode *)item:(unsigned)index;
267- (DOMNode *)getNamedItemNS:(NSString *)namespaceURI :(NSString *)localName;
268- (DOMNode *)getNamedItemNS:(NSString *)namespaceURI localName:(NSString *)localName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
269- (DOMNode *)setNamedItemNS:(DOMNode *)node;
270- (DOMNode *)removeNamedItemNS:(NSString *)namespaceURI :(NSString *)localName;
271- (DOMNode *)removeNamedItemNS:(NSString *)namespaceURI localName:(NSString *)localName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
272@end
273
274@interface DOMNode : DOMObject WEBKIT_VERSION_1_3
275@property(readonly, copy) NSString *nodeName;
276@property(copy) NSString *nodeValue;
277@property(readonly) unsigned short nodeType;
278@property(readonly, retain) DOMNode *parentNode;
279@property(readonly, retain) DOMNodeList *childNodes;
280@property(readonly, retain) DOMNode *firstChild;
281@property(readonly, retain) DOMNode *lastChild;
282@property(readonly, retain) DOMNode *previousSibling;
283@property(readonly, retain) DOMNode *nextSibling;
284@property(readonly, retain) DOMNamedNodeMap *attributes;
285@property(readonly, retain) DOMDocument *ownerDocument;
286@property(readonly, copy) NSString *namespaceURI;
287@property(copy) NSString *prefix;
288@property(readonly, copy) NSString *localName;
289@property(copy) NSString *textContent AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
290@property(readonly, copy) NSString *baseURI AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
291@property(readonly, retain) DOMElement *parentElement AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
292@property(readonly) BOOL isContentEditable AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
293- (DOMNode *)insertBefore:(DOMNode *)newChild :(DOMNode *)refChild;
294- (DOMNode *)insertBefore:(DOMNode *)newChild refChild:(DOMNode *)refChild AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
295- (DOMNode *)replaceChild:(DOMNode *)newChild :(DOMNode *)oldChild;
296- (DOMNode *)replaceChild:(DOMNode *)newChild oldChild:(DOMNode *)oldChild AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
297- (DOMNode *)removeChild:(DOMNode *)oldChild;
298- (DOMNode *)appendChild:(DOMNode *)newChild;
299- (BOOL)hasChildNodes;
300- (DOMNode *)cloneNode:(BOOL)deep;
301- (void)normalize;
302- (BOOL)isSupported:(NSString *)feature :(NSString *)version;
303- (BOOL)isSupported:(NSString *)feature version:(NSString *)version AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
304- (BOOL)hasAttributes;
305- (BOOL)isSameNode:(DOMNode *)other AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
306- (BOOL)isEqualNode:(DOMNode *)other AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
307- (NSString *)lookupPrefix:(NSString *)namespaceURI AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
308- (BOOL)isDefaultNamespace:(NSString *)namespaceURI AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
309- (NSString *)lookupNamespaceURI:(NSString *)prefix AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
310- (unsigned short)compareDocumentPosition:(DOMNode *)other AVAILABLE_IN_WEBKIT_VERSION_4_0;
311@end
312
313@interface DOMNodeList : DOMObject WEBKIT_VERSION_1_3
314@property(readonly) unsigned length;
315- (DOMNode *)item:(unsigned)index;
316@end
317
318@interface DOMNotation : DOMNode WEBKIT_VERSION_1_3
319@property(readonly, copy) NSString *publicId;
320@property(readonly, copy) NSString *systemId;
321@end
322
323@interface DOMProcessingInstruction : DOMNode WEBKIT_VERSION_1_3
324@property(readonly, copy) NSString *target;
325@property(copy) NSString *data;
326@property(readonly, retain) DOMStyleSheet *sheet AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
327@end
328
329@interface DOMText : DOMCharacterData WEBKIT_VERSION_1_3
330@property(readonly, copy) NSString *wholeText AVAILABLE_IN_WEBKIT_VERSION_4_0;
331- (DOMText *)splitText:(unsigned)offset;
332- (DOMText *)replaceWholeText:(NSString *)content AVAILABLE_IN_WEBKIT_VERSION_4_0;
333@end
334
335@interface DOMHTMLAnchorElement : DOMHTMLElement WEBKIT_VERSION_1_3
336@property(copy) NSString *accessKey;
337@property(copy) NSString *charset;
338@property(copy) NSString *coords;
339@property(copy) NSString *href;
340@property(copy) NSString *hreflang;
341@property(copy) NSString *name;
342@property(copy) NSString *rel;
343@property(copy) NSString *rev;
344@property(copy) NSString *shape;
345@property(copy) NSString *target;
346@property(copy) NSString *type;
347@property(readonly, copy) NSURL *absoluteLinkURL AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
348@property(readonly, copy) NSString *hashName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
349@property(readonly, copy) NSString *host AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
350@property(readonly, copy) NSString *hostname AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
351@property(readonly, copy) NSString *pathname AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
352@property(readonly, copy) NSString *port AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
353@property(readonly, copy) NSString *protocol AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
354@property(readonly, copy) NSString *search AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
355@property(readonly, copy) NSString *text AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
356@end
357
358@interface DOMHTMLAppletElement : DOMHTMLElement WEBKIT_VERSION_1_3
359@property(copy) NSString *align;
360@property(copy) NSString *alt;
361@property(copy) NSString *archive;
362@property(copy) NSString *code;
363@property(copy) NSString *codeBase;
364@property(copy) NSString *height;
365@property int hspace;
366@property(copy) NSString *name;
367@property(copy) NSString *object;
368@property int vspace;
369@property(copy) NSString *width;
370@end
371
372@interface DOMHTMLAreaElement : DOMHTMLElement WEBKIT_VERSION_1_3
373@property(copy) NSString *accessKey;
374@property(copy) NSString *alt;
375@property(copy) NSString *coords;
376@property(copy) NSString *href;
377@property BOOL noHref;
378@property(copy) NSString *shape;
379@property(copy) NSString *target;
380@property(readonly, copy) NSURL *absoluteLinkURL AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
381@property(readonly, copy) NSString *hashName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
382@property(readonly, copy) NSString *host AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
383@property(readonly, copy) NSString *hostname AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
384@property(readonly, copy) NSString *pathname AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
385@property(readonly, copy) NSString *port AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
386@property(readonly, copy) NSString *protocol AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
387@property(readonly, copy) NSString *search AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
388@end
389
390@interface DOMHTMLBRElement : DOMHTMLElement WEBKIT_VERSION_1_3
391@property(copy) NSString *clear;
392@end
393
394@interface DOMHTMLBaseElement : DOMHTMLElement WEBKIT_VERSION_1_3
395@property(copy) NSString *href;
396@property(copy) NSString *target;
397@end
398
399@interface DOMHTMLBaseFontElement : DOMHTMLElement WEBKIT_VERSION_1_3
400@property(copy) NSString *color;
401@property(copy) NSString *face;
402@property(copy) NSString *size;
403@end
404
405@interface DOMHTMLBodyElement : DOMHTMLElement WEBKIT_VERSION_1_3
406@property(copy) NSString *aLink;
407@property(copy) NSString *background;
408@property(copy) NSString *bgColor;
409@property(copy) NSString *link;
410@property(copy) NSString *text;
411@property(copy) NSString *vLink;
412@end
413
414@interface DOMHTMLButtonElement : DOMHTMLElement WEBKIT_VERSION_1_3
415@property(readonly, retain) DOMHTMLFormElement *form;
416@property(copy) NSString *accessKey;
417@property BOOL disabled;
418@property(copy) NSString *name;
419@property(readonly, copy) NSString *type;
420@property(copy) NSString *value;
421@property BOOL autofocus AVAILABLE_IN_WEBKIT_VERSION_4_0;
422@property(readonly) BOOL willValidate AVAILABLE_IN_WEBKIT_VERSION_4_0;
423- (void)click AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
424@end
425
426@interface DOMHTMLCanvasElement : DOMHTMLElement WEBKIT_VERSION_3_0
427@property int height;
428@property int width;
429@end
430
431@interface DOMHTMLCollection : DOMObject WEBKIT_VERSION_1_3
432@property(readonly) unsigned length;
433- (DOMNode *)item:(unsigned)index;
434- (DOMNode *)namedItem:(NSString *)name;
435- (DOMNodeList *)tags:(NSString *)name AVAILABLE_IN_WEBKIT_VERSION_4_0;
436@end
437
438@interface DOMHTMLDListElement : DOMHTMLElement WEBKIT_VERSION_1_3
439@property BOOL compact;
440@end
441
442@interface DOMHTMLDirectoryElement : DOMHTMLElement WEBKIT_VERSION_1_3
443@property BOOL compact;
444@end
445
446@interface DOMHTMLDivElement : DOMHTMLElement WEBKIT_VERSION_1_3
447@property(copy) NSString *align;
448@end
449
450@interface DOMHTMLDocument : DOMDocument WEBKIT_VERSION_1_3
451@property(readonly, retain) DOMHTMLCollection *embeds AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
452@property(readonly, retain) DOMHTMLCollection *plugins AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
453@property(readonly, retain) DOMHTMLCollection *scripts AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
454@property(readonly) int width AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
455@property(readonly) int height AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
456@property(copy) NSString *dir AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
457@property(copy) NSString *designMode AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
458@property(copy) NSString *bgColor AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
459@property(copy) NSString *fgColor AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
460@property(copy) NSString *alinkColor AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
461@property(copy) NSString *linkColor AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
462@property(copy) NSString *vlinkColor AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
463@property(readonly, retain) DOMElement *activeElement AVAILABLE_IN_WEBKIT_VERSION_4_0;
464@property(readonly, copy) NSString *compatMode AVAILABLE_IN_WEBKIT_VERSION_4_0;
465- (void)captureEvents AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
466- (void)releaseEvents AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
467- (void)clear AVAILABLE_IN_WEBKIT_VERSION_4_0;
468- (BOOL)hasFocus AVAILABLE_IN_WEBKIT_VERSION_4_0;
469- (void)open;
470- (void)close;
471- (void)write:(NSString *)text;
472- (void)writeln:(NSString *)text;
473@end
474
475@interface DOMHTMLElement : DOMElement WEBKIT_VERSION_1_3
476@property(copy) NSString *title;
477@property(copy) NSString *idName;
478@property(copy) NSString *lang;
479@property(copy) NSString *dir;
480@property(copy) NSString *className;
481@property(copy) NSString *innerHTML;
482@property(copy) NSString *innerText;
483@property(copy) NSString *outerHTML;
484@property(copy) NSString *outerText;
485@property(readonly, retain) DOMHTMLCollection *children;
486@property(copy) NSString *contentEditable;
487@property(readonly) BOOL isContentEditable;
488@property(readonly, copy) NSString *titleDisplayString AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
489@property int tabIndex;
490@end
491
492@interface DOMHTMLEmbedElement : DOMHTMLElement WEBKIT_VERSION_1_3
493@property(copy) NSString *align;
494@property int height;
495@property(copy) NSString *name;
496@property(copy) NSString *src;
497@property(copy) NSString *type;
498@property int width;
499@end
500
501@interface DOMHTMLFieldSetElement : DOMHTMLElement WEBKIT_VERSION_1_3
502@property(readonly, retain) DOMHTMLFormElement *form;
503@end
504
505@interface DOMHTMLFontElement : DOMHTMLElement WEBKIT_VERSION_1_3
506@property(copy) NSString *color;
507@property(copy) NSString *face;
508@property(copy) NSString *size;
509@end
510
511@interface DOMHTMLFormElement : DOMHTMLElement WEBKIT_VERSION_1_3
512@property(readonly, retain) DOMHTMLCollection *elements;
513@property(readonly) int length;
514@property(copy) NSString *name;
515@property(copy) NSString *acceptCharset;
516@property(copy) NSString *action;
517@property(copy) NSString *enctype;
518@property(copy) NSString *method;
519@property(copy) NSString *target;
520@property(copy) NSString *encoding AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
521- (void)submit;
522- (void)reset;
523@end
524
525@interface DOMHTMLFrameElement : DOMHTMLElement WEBKIT_VERSION_1_3
526@property(copy) NSString *frameBorder;
527@property(copy) NSString *longDesc;
528@property(copy) NSString *marginHeight;
529@property(copy) NSString *marginWidth;
530@property(copy) NSString *name;
531@property BOOL noResize;
532@property(copy) NSString *scrolling;
533@property(copy) NSString *src;
534@property(readonly, retain) DOMDocument *contentDocument;
535@property(readonly, retain) DOMAbstractView *contentWindow AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
536@property(copy) NSString *location AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
537@property(readonly) int width AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
538@property(readonly) int height AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
539@end
540
541@interface DOMHTMLFrameSetElement : DOMHTMLElement WEBKIT_VERSION_1_3
542@property(copy) NSString *cols;
543@property(copy) NSString *rows;
544@end
545
546@interface DOMHTMLHRElement : DOMHTMLElement WEBKIT_VERSION_1_3
547@property(copy) NSString *align;
548@property BOOL noShade;
549@property(copy) NSString *size;
550@property(copy) NSString *width;
551@end
552
553@interface DOMHTMLHeadElement : DOMHTMLElement WEBKIT_VERSION_1_3
554@property(copy) NSString *profile;
555@end
556
557@interface DOMHTMLHeadingElement : DOMHTMLElement WEBKIT_VERSION_1_3
558@property(copy) NSString *align;
559@end
560
561@interface DOMHTMLHtmlElement : DOMHTMLElement WEBKIT_VERSION_1_3
562@property(copy) NSString *version;
563@end
564
565@interface DOMHTMLIFrameElement : DOMHTMLElement WEBKIT_VERSION_1_3
566@property(copy) NSString *align;
567@property(copy) NSString *frameBorder;
568@property(copy) NSString *height;
569@property(copy) NSString *longDesc;
570@property(copy) NSString *marginHeight;
571@property(copy) NSString *marginWidth;
572@property(copy) NSString *name;
573@property(copy) NSString *scrolling;
574@property(copy) NSString *src;
575@property(copy) NSString *width;
576@property(readonly, retain) DOMDocument *contentDocument;
577@property(readonly, retain) DOMAbstractView *contentWindow AVAILABLE_IN_WEBKIT_VERSION_4_0;
578@end
579
580@interface DOMHTMLImageElement : DOMHTMLElement WEBKIT_VERSION_1_3
581@property(copy) NSString *name;
582@property(copy) NSString *align;
583@property(copy) NSString *alt;
584@property(copy) NSString *border;
585@property int height;
586@property int hspace;
587@property BOOL isMap;
588@property(copy) NSString *longDesc;
589@property(copy) NSString *src;
590@property(copy) NSString *useMap;
591@property int vspace;
592@property int width;
593@property(readonly, copy) NSString *altDisplayString AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
594@property(readonly, copy) NSURL *absoluteImageURL AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
595@property(readonly) BOOL complete AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
596@property(copy) NSString *lowsrc AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
597@property(readonly) int naturalHeight AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
598@property(readonly) int naturalWidth AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
599@property(readonly) int x AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
600@property(readonly) int y AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
601@end
602
603@interface DOMHTMLInputElement : DOMHTMLElement WEBKIT_VERSION_1_3
604@property(copy) NSString *defaultValue;
605@property BOOL defaultChecked;
606@property(readonly, retain) DOMHTMLFormElement *form;
607@property(copy) NSString *accept;
608@property(copy) NSString *accessKey;
609@property(copy) NSString *align;
610@property(copy) NSString *alt;
611@property BOOL checked;
612@property BOOL disabled;
613@property int maxLength;
614@property(copy) NSString *name;
615@property BOOL readOnly;
616@property(copy) NSString *size;
617@property(copy) NSString *src;
618@property(copy) NSString *type;
619@property(copy) NSString *useMap;
620@property(copy) NSString *value;
621@property(readonly, copy) NSString *altDisplayString AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
622@property(readonly, copy) NSURL *absoluteImageURL AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
623@property BOOL indeterminate AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
624@property int selectionStart AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
625@property int selectionEnd AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
626@property BOOL autofocus AVAILABLE_IN_WEBKIT_VERSION_4_0;
627@property BOOL multiple AVAILABLE_IN_WEBKIT_VERSION_4_0;
628@property(readonly) BOOL willValidate AVAILABLE_IN_WEBKIT_VERSION_4_0;
629@property(readonly, retain) DOMFileList *files AVAILABLE_IN_WEBKIT_VERSION_4_0;
630- (void)select;
631- (void)click;
632- (void)setSelectionRange:(int)start end:(int)end AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
633@end
634
635@interface DOMHTMLIsIndexElement : DOMHTMLInputElement WEBKIT_VERSION_1_3
636@property(readonly, retain) DOMHTMLFormElement *form;
637@property(copy) NSString *prompt;
638@end
639
640@interface DOMHTMLLIElement : DOMHTMLElement WEBKIT_VERSION_1_3
641@property(copy) NSString *type;
642@property int value;
643@end
644
645@interface DOMHTMLLabelElement : DOMHTMLElement WEBKIT_VERSION_1_3
646@property(readonly, retain) DOMHTMLFormElement *form;
647@property(copy) NSString *accessKey;
648@property(copy) NSString *htmlFor;
649@end
650
651@interface DOMHTMLLegendElement : DOMHTMLElement WEBKIT_VERSION_1_3
652@property(readonly, retain) DOMHTMLFormElement *form;
653@property(copy) NSString *accessKey;
654@property(copy) NSString *align;
655@end
656
657@interface DOMHTMLLinkElement : DOMHTMLElement WEBKIT_VERSION_1_3
658@property BOOL disabled;
659@property(copy) NSString *charset;
660@property(copy) NSString *href;
661@property(copy) NSString *hreflang;
662@property(copy) NSString *media;
663@property(copy) NSString *rel;
664@property(copy) NSString *rev;
665@property(copy) NSString *target;
666@property(copy) NSString *type;
667@property(readonly, copy) NSURL *absoluteLinkURL AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
668@property(readonly, retain) DOMStyleSheet *sheet AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
669@end
670
671@interface DOMHTMLMapElement : DOMHTMLElement WEBKIT_VERSION_1_3
672@property(readonly, retain) DOMHTMLCollection *areas;
673@property(copy) NSString *name;
674@end
675
676@interface DOMHTMLMarqueeElement : DOMHTMLElement WEBKIT_VERSION_3_0
677- (void)start;
678- (void)stop;
679@end
680
681@interface DOMHTMLMenuElement : DOMHTMLElement WEBKIT_VERSION_1_3
682@property BOOL compact;
683@end
684
685@interface DOMHTMLMetaElement : DOMHTMLElement WEBKIT_VERSION_1_3
686@property(copy) NSString *content;
687@property(copy) NSString *httpEquiv;
688@property(copy) NSString *name;
689@property(copy) NSString *scheme;
690@end
691
692@interface DOMHTMLModElement : DOMHTMLElement WEBKIT_VERSION_1_3
693@property(copy) NSString *cite;
694@property(copy) NSString *dateTime;
695@end
696
697@interface DOMHTMLOListElement : DOMHTMLElement WEBKIT_VERSION_1_3
698@property BOOL compact;
699@property int start;
700@property(copy) NSString *type;
701@end
702
703@interface DOMHTMLObjectElement : DOMHTMLElement WEBKIT_VERSION_1_3
704@property(readonly, retain) DOMHTMLFormElement *form;
705@property(copy) NSString *code;
706@property(copy) NSString *align;
707@property(copy) NSString *archive;
708@property(copy) NSString *border;
709@property(copy) NSString *codeBase;
710@property(copy) NSString *codeType;
711@property(copy) NSString *data;
712@property BOOL declare;
713@property(copy) NSString *height;
714@property int hspace;
715@property(copy) NSString *name;
716@property(copy) NSString *standby;
717@property(copy) NSString *type;
718@property(copy) NSString *useMap;
719@property int vspace;
720@property(copy) NSString *width;
721@property(readonly, retain) DOMDocument *contentDocument;
722@property(readonly, copy) NSURL *absoluteImageURL AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
723@end
724
725@interface DOMHTMLOptGroupElement : DOMHTMLElement WEBKIT_VERSION_1_3
726@property BOOL disabled;
727@property(copy) NSString *label;
728@end
729
730@interface DOMHTMLOptionElement : DOMHTMLElement WEBKIT_VERSION_1_3
731@property(readonly, retain) DOMHTMLFormElement *form;
732@property BOOL defaultSelected;
733@property(readonly, copy) NSString *text;
734@property(readonly) int index;
735@property BOOL disabled;
736@property(copy) NSString *label;
737@property BOOL selected;
738@property(copy) NSString *value;
739@end
740
741@interface DOMHTMLOptionsCollection : DOMObject WEBKIT_VERSION_1_3
742@property unsigned length;
743@property int selectedIndex AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
744- (DOMNode *)item:(unsigned)index;
745- (DOMNode *)namedItem:(NSString *)name;
746- (void)add:(DOMHTMLOptionElement *)option index:(unsigned)index AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
747- (void)remove:(unsigned)index AVAILABLE_IN_WEBKIT_VERSION_4_0;
748@end
749
750@interface DOMHTMLParagraphElement : DOMHTMLElement WEBKIT_VERSION_1_3
751@property(copy) NSString *align;
752@end
753
754@interface DOMHTMLParamElement : DOMHTMLElement WEBKIT_VERSION_1_3
755@property(copy) NSString *name;
756@property(copy) NSString *type;
757@property(copy) NSString *value;
758@property(copy) NSString *valueType;
759@end
760
761@interface DOMHTMLPreElement : DOMHTMLElement WEBKIT_VERSION_1_3
762@property int width;
763@property BOOL wrap AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
764@end
765
766@interface DOMHTMLQuoteElement : DOMHTMLElement WEBKIT_VERSION_1_3
767@property(copy) NSString *cite;
768@end
769
770@interface DOMHTMLScriptElement : DOMHTMLElement WEBKIT_VERSION_1_3
771@property(copy) NSString *text;
772@property(copy) NSString *htmlFor;
773@property(copy) NSString *event;
774@property(copy) NSString *charset;
775@property BOOL defer;
776@property(copy) NSString *src;
777@property(copy) NSString *type;
778@end
779
780@interface DOMHTMLSelectElement : DOMHTMLElement WEBKIT_VERSION_1_3
781@property(readonly, copy) NSString *type;
782@property int selectedIndex;
783@property(copy) NSString *value;
784@property(readonly) int length;
785@property(readonly, retain) DOMHTMLFormElement *form;
786@property(readonly, retain) DOMHTMLOptionsCollection *options;
787@property BOOL disabled;
788@property BOOL multiple;
789@property(copy) NSString *name;
790@property int size;
791@property(readonly) BOOL willValidate AVAILABLE_IN_WEBKIT_VERSION_4_0;
792@property BOOL autofocus AVAILABLE_IN_WEBKIT_VERSION_4_0;
793- (void)add:(DOMHTMLElement *)element :(DOMHTMLElement *)before;
794- (void)add:(DOMHTMLElement *)element before:(DOMHTMLElement *)before AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
795- (void)remove:(int)index;
796- (DOMNode *)item:(unsigned)index AVAILABLE_IN_WEBKIT_VERSION_4_0;
797- (DOMNode *)namedItem:(NSString *)name AVAILABLE_IN_WEBKIT_VERSION_4_0;
798@end
799
800@interface DOMHTMLStyleElement : DOMHTMLElement WEBKIT_VERSION_1_3
801@property BOOL disabled;
802@property(copy) NSString *media;
803@property(copy) NSString *type;
804@property(readonly, retain) DOMStyleSheet *sheet AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
805@end
806
807@interface DOMHTMLTableCaptionElement : DOMHTMLElement WEBKIT_VERSION_1_3
808@property(copy) NSString *align;
809@end
810
811@interface DOMHTMLTableCellElement : DOMHTMLElement WEBKIT_VERSION_1_3
812@property(readonly) int cellIndex;
813@property(copy) NSString *abbr;
814@property(copy) NSString *align;
815@property(copy) NSString *axis;
816@property(copy) NSString *bgColor;
817@property(copy) NSString *ch;
818@property(copy) NSString *chOff;
819@property int colSpan;
820@property(copy) NSString *headers;
821@property(copy) NSString *height;
822@property BOOL noWrap;
823@property int rowSpan;
824@property(copy) NSString *scope;
825@property(copy) NSString *vAlign;
826@property(copy) NSString *width;
827@end
828
829@interface DOMHTMLTableColElement : DOMHTMLElement WEBKIT_VERSION_1_3
830@property(copy) NSString *align;
831@property(copy) NSString *ch;
832@property(copy) NSString *chOff;
833@property int span;
834@property(copy) NSString *vAlign;
835@property(copy) NSString *width;
836@end
837
838@interface DOMHTMLTableElement : DOMHTMLElement WEBKIT_VERSION_1_3
839@property(retain) DOMHTMLTableCaptionElement *caption;
840@property(retain) DOMHTMLTableSectionElement *tHead;
841@property(retain) DOMHTMLTableSectionElement *tFoot;
842@property(readonly, retain) DOMHTMLCollection *rows;
843@property(readonly, retain) DOMHTMLCollection *tBodies;
844@property(copy) NSString *align;
845@property(copy) NSString *bgColor;
846@property(copy) NSString *border;
847@property(copy) NSString *cellPadding;
848@property(copy) NSString *cellSpacing;
849@property(copy) NSString *frameBorders;
850@property(copy) NSString *rules;
851@property(copy) NSString *summary;
852@property(copy) NSString *width;
853- (DOMHTMLElement *)createTHead;
854- (void)deleteTHead;
855- (DOMHTMLElement *)createTFoot;
856- (void)deleteTFoot;
857- (DOMHTMLElement *)createCaption;
858- (void)deleteCaption;
859- (DOMHTMLElement *)insertRow:(int)index;
860- (void)deleteRow:(int)index;
861@end
862
863@interface DOMHTMLTableRowElement : DOMHTMLElement WEBKIT_VERSION_1_3
864@property(readonly) int rowIndex;
865@property(readonly) int sectionRowIndex;
866@property(readonly, retain) DOMHTMLCollection *cells;
867@property(copy) NSString *align;
868@property(copy) NSString *bgColor;
869@property(copy) NSString *ch;
870@property(copy) NSString *chOff;
871@property(copy) NSString *vAlign;
872- (DOMHTMLElement *)insertCell:(int)index;
873- (void)deleteCell:(int)index;
874@end
875
876@interface DOMHTMLTableSectionElement : DOMHTMLElement WEBKIT_VERSION_1_3
877@property(copy) NSString *align;
878@property(copy) NSString *ch;
879@property(copy) NSString *chOff;
880@property(copy) NSString *vAlign;
881@property(readonly, retain) DOMHTMLCollection *rows;
882- (DOMHTMLElement *)insertRow:(int)index;
883- (void)deleteRow:(int)index;
884@end
885
886@interface DOMHTMLTextAreaElement : DOMHTMLElement WEBKIT_VERSION_1_3
887@property(copy) NSString *defaultValue;
888@property(readonly, retain) DOMHTMLFormElement *form;
889@property(copy) NSString *accessKey;
890@property int cols;
891@property BOOL disabled;
892@property(copy) NSString *name;
893@property BOOL readOnly;
894@property int rows;
895@property(readonly, copy) NSString *type;
896@property(copy) NSString *value;
897@property int selectionStart AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
898@property int selectionEnd AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
899@property BOOL autofocus AVAILABLE_IN_WEBKIT_VERSION_4_0;
900@property(readonly) BOOL willValidate AVAILABLE_IN_WEBKIT_VERSION_4_0;
901- (void)select;
902- (void)setSelectionRange:(int)start end:(int)end AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
903@end
904
905@interface DOMHTMLTitleElement : DOMHTMLElement WEBKIT_VERSION_1_3
906@property(copy) NSString *text;
907@end
908
909@interface DOMHTMLUListElement : DOMHTMLElement WEBKIT_VERSION_1_3
910@property BOOL compact;
911@property(copy) NSString *type;
912@end
913
914@interface DOMStyleSheetList : DOMObject WEBKIT_VERSION_1_3
915@property(readonly) unsigned length;
916- (DOMStyleSheet *)item:(unsigned)index;
917@end
918
919@interface DOMCSSCharsetRule : DOMCSSRule WEBKIT_VERSION_1_3
920@property(readonly, copy) NSString *encoding;
921@end
922
923@interface DOMCSSFontFaceRule : DOMCSSRule WEBKIT_VERSION_1_3
924@property(readonly, retain) DOMCSSStyleDeclaration *style;
925@end
926
927@interface DOMCSSImportRule : DOMCSSRule WEBKIT_VERSION_1_3
928@property(readonly, copy) NSString *href;
929@property(readonly, retain) DOMMediaList *media;
930@property(readonly, retain) DOMCSSStyleSheet *styleSheet;
931@end
932
933@interface DOMCSSMediaRule : DOMCSSRule WEBKIT_VERSION_1_3
934@property(readonly, retain) DOMMediaList *media;
935@property(readonly, retain) DOMCSSRuleList *cssRules;
936- (unsigned)insertRule:(NSString *)rule :(unsigned)index;
937- (unsigned)insertRule:(NSString *)rule index:(unsigned)index AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
938- (void)deleteRule:(unsigned)index;
939@end
940
941@interface DOMCSSPageRule : DOMCSSRule WEBKIT_VERSION_1_3
942@property(copy) NSString *selectorText;
943@property(readonly, retain) DOMCSSStyleDeclaration *style;
944@end
945
946@interface DOMCSSPrimitiveValue : DOMCSSValue WEBKIT_VERSION_1_3
947@property(readonly) unsigned short primitiveType;
948- (void)setFloatValue:(unsigned short)unitType :(float)floatValue;
949- (void)setFloatValue:(unsigned short)unitType floatValue:(float)floatValue AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
950- (float)getFloatValue:(unsigned short)unitType;
951- (void)setStringValue:(unsigned short)stringType :(NSString *)stringValue;
952- (void)setStringValue:(unsigned short)stringType stringValue:(NSString *)stringValue AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
953- (NSString *)getStringValue;
954- (DOMCounter *)getCounterValue;
955- (DOMRect *)getRectValue;
956- (DOMRGBColor *)getRGBColorValue;
957@end
958
959@interface DOMRGBColor : DOMObject WEBKIT_VERSION_1_3
960@property(readonly, retain) DOMCSSPrimitiveValue *red;
961@property(readonly, retain) DOMCSSPrimitiveValue *green;
962@property(readonly, retain) DOMCSSPrimitiveValue *blue;
963@property(readonly, retain) DOMCSSPrimitiveValue *alpha;
964@property(readonly, copy) NSColor *color AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
965@end
966
967@interface DOMCSSRule : DOMObject WEBKIT_VERSION_1_3
968@property(readonly) unsigned short type;
969@property(copy) NSString *cssText;
970@property(readonly, retain) DOMCSSStyleSheet *parentStyleSheet;
971@property(readonly, retain) DOMCSSRule *parentRule;
972@end
973
974@interface DOMCSSRuleList : DOMObject WEBKIT_VERSION_1_3
975@property(readonly) unsigned length;
976- (DOMCSSRule *)item:(unsigned)index;
977@end
978
979@interface DOMCSSStyleDeclaration : DOMObject WEBKIT_VERSION_1_3
980@property(copy) NSString *cssText;
981@property(readonly) unsigned length;
982@property(readonly, retain) DOMCSSRule *parentRule;
983- (NSString *)getPropertyValue:(NSString *)propertyName;
984- (DOMCSSValue *)getPropertyCSSValue:(NSString *)propertyName;
985- (NSString *)removeProperty:(NSString *)propertyName;
986- (NSString *)getPropertyPriority:(NSString *)propertyName;
987- (void)setProperty:(NSString *)propertyName :(NSString *)value :(NSString *)priority;
988- (void)setProperty:(NSString *)propertyName value:(NSString *)value priority:(NSString *)priority AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
989- (NSString *)item:(unsigned)index;
990- (NSString *)getPropertyShorthand:(NSString *)propertyName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
991- (BOOL)isPropertyImplicit:(NSString *)propertyName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
992@end
993
994@interface DOMCSSStyleRule : DOMCSSRule WEBKIT_VERSION_1_3
995@property(copy) NSString *selectorText;
996@property(readonly, retain) DOMCSSStyleDeclaration *style;
997@end
998
999@interface DOMStyleSheet : DOMObject WEBKIT_VERSION_1_3
1000@property(readonly, copy) NSString *type;
1001@property BOOL disabled;
1002@property(readonly, retain) DOMNode *ownerNode;
1003@property(readonly, retain) DOMStyleSheet *parentStyleSheet;
1004@property(readonly, copy) NSString *href;
1005@property(readonly, copy) NSString *title;
1006@property(readonly, retain) DOMMediaList *media;
1007@end
1008
1009@interface DOMCSSStyleSheet : DOMStyleSheet WEBKIT_VERSION_1_3
1010@property(readonly, retain) DOMCSSRule *ownerRule;
1011@property(readonly, retain) DOMCSSRuleList *cssRules;
1012@property(readonly, retain) DOMCSSRuleList *rules AVAILABLE_IN_WEBKIT_VERSION_4_0;
1013- (unsigned)insertRule:(NSString *)rule :(unsigned)index;
1014- (unsigned)insertRule:(NSString *)rule index:(unsigned)index AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1015- (void)deleteRule:(unsigned)index;
1016- (int)addRule:(NSString *)selector style:(NSString *)style index:(unsigned)index AVAILABLE_IN_WEBKIT_VERSION_4_0;
1017- (void)removeRule:(unsigned)index AVAILABLE_IN_WEBKIT_VERSION_4_0;
1018@end
1019
1020@interface DOMCSSValue : DOMObject WEBKIT_VERSION_1_3
1021@property(copy) NSString *cssText;
1022@property(readonly) unsigned short cssValueType;
1023@end
1024
1025@interface DOMCSSValueList : DOMCSSValue WEBKIT_VERSION_1_3
1026@property(readonly) unsigned length;
1027- (DOMCSSValue *)item:(unsigned)index;
1028@end
1029
1030@interface DOMCSSUnknownRule : DOMCSSRule WEBKIT_VERSION_1_3
1031@end
1032
1033@interface DOMCounter : DOMObject WEBKIT_VERSION_1_3
1034@property(readonly, copy) NSString *identifier;
1035@property(readonly, copy) NSString *listStyle;
1036@property(readonly, copy) NSString *separator;
1037@end
1038
1039@interface DOMRect : DOMObject WEBKIT_VERSION_1_3
1040@property(readonly, retain) DOMCSSPrimitiveValue *top;
1041@property(readonly, retain) DOMCSSPrimitiveValue *right;
1042@property(readonly, retain) DOMCSSPrimitiveValue *bottom;
1043@property(readonly, retain) DOMCSSPrimitiveValue *left;
1044@end
1045
1046@interface DOMEvent : DOMObject WEBKIT_VERSION_1_3
1047@property(readonly, copy) NSString *type;
1048@property(readonly, retain) id <DOMEventTarget> target;
1049@property(readonly, retain) id <DOMEventTarget> currentTarget;
1050@property(readonly) unsigned short eventPhase;
1051@property(readonly) BOOL bubbles;
1052@property(readonly) BOOL cancelable;
1053@property(readonly) DOMTimeStamp timeStamp;
1054@property(readonly, retain) id <DOMEventTarget> srcElement AVAILABLE_IN_WEBKIT_VERSION_4_0;
1055@property BOOL returnValue AVAILABLE_IN_WEBKIT_VERSION_4_0;
1056@property BOOL cancelBubble AVAILABLE_IN_WEBKIT_VERSION_4_0;
1057- (void)stopPropagation;
1058- (void)preventDefault;
1059- (void)initEvent:(NSString *)eventTypeArg canBubbleArg:(BOOL)canBubbleArg cancelableArg:(BOOL)cancelableArg AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1060- (void)initEvent:(NSString *)eventTypeArg :(BOOL)canBubbleArg :(BOOL)cancelableArg;
1061@end
1062
1063@interface DOMUIEvent : DOMEvent WEBKIT_VERSION_1_3
1064@property(readonly, retain) DOMAbstractView *view;
1065@property(readonly) int detail;
1066@property(readonly) int keyCode AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1067@property(readonly) int charCode AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1068@property(readonly) int layerX AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1069@property(readonly) int layerY AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1070@property(readonly) int pageX AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1071@property(readonly) int pageY AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1072@property(readonly) int which AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1073- (void)initUIEvent:(NSString *)type canBubble:(BOOL)canBubble cancelable:(BOOL)cancelable view:(DOMAbstractView *)view detail:(int)detail AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1074- (void)initUIEvent:(NSString *)type :(BOOL)canBubble :(BOOL)cancelable :(DOMAbstractView *)view :(int)detail;
1075@end
1076
1077@interface DOMMutationEvent : DOMEvent WEBKIT_VERSION_1_3
1078@property(readonly, retain) DOMNode *relatedNode;
1079@property(readonly, copy) NSString *prevValue;
1080@property(readonly, copy) NSString *newValue;
1081@property(readonly, copy) NSString *attrName;
1082@property(readonly) unsigned short attrChange;
1083- (void)initMutationEvent:(NSString *)type canBubble:(BOOL)canBubble cancelable:(BOOL)cancelable relatedNode:(DOMNode *)relatedNode prevValue:(NSString *)prevValue newValue:(NSString *)newValue attrName:(NSString *)attrName attrChange:(unsigned short)attrChange AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1084- (void)initMutationEvent:(NSString *)type :(BOOL)canBubble :(BOOL)cancelable :(DOMNode *)relatedNode :(NSString *)prevValue :(NSString *)newValue :(NSString *)attrName :(unsigned short)attrChange;
1085@end
1086
1087@interface DOMOverflowEvent : DOMEvent WEBKIT_VERSION_3_0
1088@property(readonly) unsigned short orient;
1089@property(readonly) BOOL horizontalOverflow;
1090@property(readonly) BOOL verticalOverflow;
1091- (void)initOverflowEvent:(unsigned short)orient horizontalOverflow:(BOOL)horizontalOverflow verticalOverflow:(BOOL)verticalOverflow;
1092@end
1093
1094@interface DOMWheelEvent : DOMUIEvent WEBKIT_VERSION_3_0
1095@property(readonly) int screenX;
1096@property(readonly) int screenY;
1097@property(readonly) int clientX;
1098@property(readonly) int clientY;
1099@property(readonly) BOOL ctrlKey;
1100@property(readonly) BOOL shiftKey;
1101@property(readonly) BOOL altKey;
1102@property(readonly) BOOL metaKey;
1103@property(readonly) BOOL isHorizontal;
1104@property(readonly) int wheelDelta;
1105@property(readonly) int wheelDeltaX AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1106@property(readonly) int wheelDeltaY AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1107@property(readonly) int offsetX AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1108@property(readonly) int offsetY AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1109@property(readonly) int x AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1110@property(readonly) int y AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1111- (void)initWheelEvent:(int)wheelDeltaX wheelDeltaY:(int)wheelDeltaY view:(DOMAbstractView *)view screenX:(int)screenX screenY:(int)screenY clientX:(int)clientX clientY:(int)clientY ctrlKey:(BOOL)ctrlKey altKey:(BOOL)altKey shiftKey:(BOOL)shiftKey metaKey:(BOOL)metaKey AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1112@end
1113
1114@interface DOMKeyboardEvent : DOMUIEvent WEBKIT_VERSION_3_0
1115@property(readonly, copy) NSString *keyIdentifier;
1116@property(readonly) unsigned keyLocation;
1117@property(readonly) BOOL ctrlKey;
1118@property(readonly) BOOL shiftKey;
1119@property(readonly) BOOL altKey;
1120@property(readonly) BOOL metaKey;
1121@property(readonly) int keyCode;
1122@property(readonly) int charCode;
1123@property(readonly) BOOL altGraphKey AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1124- (BOOL)getModifierState:(NSString *)keyIdentifierArg;
1125- (void)initKeyboardEvent:(NSString *)type canBubble:(BOOL)canBubble cancelable:(BOOL)cancelable view:(DOMAbstractView *)view keyIdentifier:(NSString *)keyIdentifier keyLocation:(unsigned)keyLocation ctrlKey:(BOOL)ctrlKey altKey:(BOOL)altKey shiftKey:(BOOL)shiftKey metaKey:(BOOL)metaKey altGraphKey:(BOOL)altGraphKey AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1126- (void)initKeyboardEvent:(NSString *)type canBubble:(BOOL)canBubble cancelable:(BOOL)cancelable view:(DOMAbstractView *)view keyIdentifier:(NSString *)keyIdentifier keyLocation:(unsigned)keyLocation ctrlKey:(BOOL)ctrlKey altKey:(BOOL)altKey shiftKey:(BOOL)shiftKey metaKey:(BOOL)metaKey AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1127@end
1128
1129@interface DOMMouseEvent : DOMUIEvent WEBKIT_VERSION_1_3
1130@property(readonly) int screenX;
1131@property(readonly) int screenY;
1132@property(readonly) int clientX;
1133@property(readonly) int clientY;
1134@property(readonly) BOOL ctrlKey;
1135@property(readonly) BOOL shiftKey;
1136@property(readonly) BOOL altKey;
1137@property(readonly) BOOL metaKey;
1138@property(readonly) unsigned short button;
1139@property(readonly, retain) id <DOMEventTarget> relatedTarget;
1140@property(readonly) int offsetX AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1141@property(readonly) int offsetY AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1142@property(readonly) int x AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1143@property(readonly) int y AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1144@property(readonly, retain) DOMNode *fromElement AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1145@property(readonly, retain) DOMNode *toElement AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1146- (void)initMouseEvent:(NSString *)type canBubble:(BOOL)canBubble cancelable:(BOOL)cancelable view:(DOMAbstractView *)view detail:(int)detail screenX:(int)screenX screenY:(int)screenY clientX:(int)clientX clientY:(int)clientY ctrlKey:(BOOL)ctrlKey altKey:(BOOL)altKey shiftKey:(BOOL)shiftKey metaKey:(BOOL)metaKey button:(unsigned short)button relatedTarget:(id <DOMEventTarget>)relatedTarget AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1147- (void)initMouseEvent:(NSString *)type :(BOOL)canBubble :(BOOL)cancelable :(DOMAbstractView *)view :(int)detail :(int)screenX :(int)screenY :(int)clientX :(int)clientY :(BOOL)ctrlKey :(BOOL)altKey :(BOOL)shiftKey :(BOOL)metaKey :(unsigned short)button :(id <DOMEventTarget>)relatedTarget;
1148@end
1149
1150@interface DOMRange : DOMObject WEBKIT_VERSION_1_3
1151@property(readonly, retain) DOMNode *startContainer;
1152@property(readonly) int startOffset;
1153@property(readonly, retain) DOMNode *endContainer;
1154@property(readonly) int endOffset;
1155@property(readonly) BOOL collapsed;
1156@property(readonly, retain) DOMNode *commonAncestorContainer;
1157@property(readonly, copy) NSString *text AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1158- (void)setStart:(DOMNode *)refNode offset:(int)offset AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1159- (void)setStart:(DOMNode *)refNode :(int)offset;
1160- (void)setEnd:(DOMNode *)refNode offset:(int)offset AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1161- (void)setEnd:(DOMNode *)refNode :(int)offset;
1162- (void)setStartBefore:(DOMNode *)refNode;
1163- (void)setStartAfter:(DOMNode *)refNode;
1164- (void)setEndBefore:(DOMNode *)refNode;
1165- (void)setEndAfter:(DOMNode *)refNode;
1166- (void)collapse:(BOOL)toStart;
1167- (void)selectNode:(DOMNode *)refNode;
1168- (void)selectNodeContents:(DOMNode *)refNode;
1169- (short)compareBoundaryPoints:(unsigned short)how sourceRange:(DOMRange *)sourceRange AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1170- (short)compareBoundaryPoints:(unsigned short)how :(DOMRange *)sourceRange;
1171- (void)deleteContents;
1172- (DOMDocumentFragment *)extractContents;
1173- (DOMDocumentFragment *)cloneContents;
1174- (void)insertNode:(DOMNode *)newNode;
1175- (void)surroundContents:(DOMNode *)newParent;
1176- (DOMRange *)cloneRange;
1177- (NSString *)toString;
1178- (void)detach;
1179- (DOMDocumentFragment *)createContextualFragment:(NSString *)html AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1180- (BOOL)intersectsNode:(DOMNode *)refNode AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1181- (short)compareNode:(DOMNode *)refNode AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1182- (short)comparePoint:(DOMNode *)refNode offset:(int)offset AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1183- (BOOL)isPointInRange:(DOMNode *)refNode offset:(int)offset AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1184@end
1185
1186@interface DOMNodeIterator : DOMObject WEBKIT_VERSION_1_3
1187@property(readonly, retain) DOMNode *root;
1188@property(readonly) unsigned whatToShow;
1189@property(readonly, retain) id <DOMNodeFilter> filter;
1190@property(readonly) BOOL expandEntityReferences;
1191@property(readonly, retain) DOMNode *referenceNode AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1192@property(readonly) BOOL pointerBeforeReferenceNode AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1193- (DOMNode *)nextNode;
1194- (DOMNode *)previousNode;
1195- (void)detach;
1196@end
1197
1198@interface DOMMediaList : DOMObject WEBKIT_VERSION_1_3
1199@property(copy) NSString *mediaText;
1200@property(readonly) unsigned length;
1201- (NSString *)item:(unsigned)index;
1202- (void)deleteMedium:(NSString *)oldMedium;
1203- (void)appendMedium:(NSString *)newMedium;
1204@end
1205
1206@interface DOMTreeWalker : DOMObject WEBKIT_VERSION_1_3
1207@property(readonly, retain) DOMNode *root;
1208@property(readonly) unsigned whatToShow;
1209@property(readonly, retain) id <DOMNodeFilter> filter;
1210@property(readonly) BOOL expandEntityReferences;
1211@property(retain) DOMNode *currentNode;
1212- (DOMNode *)parentNode;
1213- (DOMNode *)firstChild;
1214- (DOMNode *)lastChild;
1215- (DOMNode *)previousSibling;
1216- (DOMNode *)nextSibling;
1217- (DOMNode *)previousNode;
1218- (DOMNode *)nextNode;
1219@end
1220
1221@interface DOMXPathResult : DOMObject WEBKIT_VERSION_3_0
1222@property(readonly) unsigned short resultType;
1223@property(readonly) double numberValue;
1224@property(readonly, copy) NSString *stringValue;
1225@property(readonly) BOOL booleanValue;
1226@property(readonly, retain) DOMNode *singleNodeValue;
1227@property(readonly) BOOL invalidIteratorState;
1228@property(readonly) unsigned snapshotLength;
1229- (DOMNode *)iterateNext;
1230- (DOMNode *)snapshotItem:(unsigned)index;
1231@end
1232
1233@interface DOMXPathExpression : DOMObject WEBKIT_VERSION_3_0
1234- (DOMXPathResult *)evaluate:(DOMNode *)contextNode type:(unsigned short)type inResult:(DOMXPathResult *)inResult AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1235- (DOMXPathResult *)evaluate:(DOMNode *)contextNode :(unsigned short)type :(DOMXPathResult *)inResult AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER_BUT_DEPRECATED;
1236@end
1237
1238// Protocols
1239
1240@protocol DOMEventListener <NSObject> WEBKIT_VERSION_1_3
1241- (void)handleEvent:(DOMEvent *)evt;
1242@end
1243
1244@protocol DOMEventTarget <NSObject, NSCopying> WEBKIT_VERSION_1_3
1245- (void)addEventListener:(NSString *)type :(id <DOMEventListener>)listener :(BOOL)useCapture;
1246- (void)removeEventListener:(NSString *)type :(id <DOMEventListener>)listener :(BOOL)useCapture;
1247- (void)addEventListener:(NSString *)type listener:(id <DOMEventListener>)listener useCapture:(BOOL)useCapture AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1248- (void)removeEventListener:(NSString *)type listener:(id <DOMEventListener>)listener useCapture:(BOOL)useCapture AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
1249- (BOOL)dispatchEvent:(DOMEvent *)event;
1250@end
1251
1252@protocol DOMNodeFilter <NSObject> WEBKIT_VERSION_1_3
1253- (short)acceptNode:(DOMNode *)n;
1254@end
1255
1256@protocol DOMXPathNSResolver <NSObject> WEBKIT_VERSION_3_0
1257- (NSString *)lookupNamespaceURI:(NSString *)prefix;
1258@end
1259