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