Document.hx 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531
  1. /*
  2. * Copyright (C)2005-2013 Haxe Foundation
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a
  5. * copy of this software and associated documentation files (the "Software"),
  6. * to deal in the Software without restriction, including without limitation
  7. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8. * and/or sell copies of the Software, and to permit persons to whom the
  9. * Software is furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice shall be included in
  12. * all copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  20. * DEALINGS IN THE SOFTWARE.
  21. */
  22. // This file is generated, do not edit!
  23. package js.html;
  24. /** <p>Each web page loaded in the browser has its own <strong>document</strong> object. This object serves as an entry point to the web page's content (the <a title="en/Using_the_W3C_DOM_Level_1_Core" rel="internal" href="https://developer.mozilla.org/en/Using_the_W3C_DOM_Level_1_Core">DOM tree</a>, including elements such as <code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/body">&lt;body&gt;</a></code>
  25. and <code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/table">&lt;table&gt;</a></code>
  26. ) and provides functionality global to the document (such as obtaining the page's URL and creating new elements in the document).</p>
  27. <p>A document object can be obtained from various APIs:</p>
  28. <ul> <li>Most commonly, you work with the document the script is running in by using <code>document</code> in document's <a title="en/HTML/Element/Script" rel="internal" href="/api/js/html/ScriptElement">scripts</a>. (The same document can also be referred to as <a title="window.document" rel="internal" href="https://developer.mozilla.org/en/DOM/window.document"><code>window.document</code></a>.)</li> <li>The document of an iframe via the iframe's <code><a title="en/DOM/HTMLIFrameElement#Properties" rel="internal" href="https://developer.mozilla.org/en/DOM/HTMLIFrameElement#Properties">contentDocument</a></code> property.</li> <li>The <a title="en/XMLHttpRequest#Attributes" rel="internal" href="https://developer.mozilla.org/en/nsIXMLHttpRequest#Attributes"><code>responseXML</code> of an <code>XMLHttpRequest</code> object</a>.</li> <li>The document, that given node or element belongs to, can be retrieved using the node's <code><a title="en/DOM/Node.ownerDocument" rel="internal" href="https://developer.mozilla.org/En/DOM/Node.ownerDocument">ownerDocument</a></code> property.</li> <li>...and more.</li>
  29. </ul>
  30. <p>Depending on the kind of the document (e.g. <a title="en/HTML" rel="internal" href="https://developer.mozilla.org/en/HTML">HTML</a> or <a title="en/XML" rel="internal" href="https://developer.mozilla.org/en/XML">XML</a>) different APIs may be available on the document object. This theoretical availability of APIs is usually described in terms of <em>implementing interfaces</em> defined in the relevant W3C DOM specifications:</p>
  31. <ul> <li>All document objects implement the DOM Core <a class="external" rel="external" href="http://www.w3.org/TR/DOM-Level-2-Core/core.html#i-Document" title="http://www.w3.org/TR/DOM-Level-2-Core/core.html#i-Document" target="_blank"><code>Document</code></a> and <code><a title="en/DOM/Node" rel="internal" href="/api/js/html/Node">Node</a></code> interfaces, meaning that the "core" properties and methods are available for all kinds of documents.</li> <li>In addition to the generalized DOM Core document interface, HTML documents also implement the <code><a class="external" rel="external" href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-26809268" title="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-26809268" target="_blank">HTMLDocument</a></code> interface, which is a more specialized interface for dealing with HTML documents (e.g., <a title="en/DOM/document.cookie" rel="internal" href="https://developer.mozilla.org/en/DOM/document.cookie">document.cookie</a>, <a title="en/DOM/document.alinkColor" rel="internal" href="https://developer.mozilla.org/en/DOM/document.alinkColor">document.alinkColor</a>).</li> <li><a title="en/XUL" rel="internal" href="https://developer.mozilla.org/en/XUL">XUL</a> documents (available to Mozilla add-on and application developers) implement their own additions to the core Document functionality.</li>
  32. </ul>
  33. <p>Methods or properties listed here that are part of a more specialized interface have an asterisk (*) next to them and have additional information in the&nbsp; Availability column.</p>
  34. <p>Note that some APIs listed below are not available in all browsers for various reasons:</p>
  35. <ul> <li><strong>Obsolete</strong>: on its way of being removed from supporting browsers.</li> <li><strong>Non-standard</strong>: either an experimental feature not (yet?) agreed upon by all vendors, or a feature targeted specifically at the code running in a specific browser (e.g. Mozilla has a few DOM APIs created for its add-ons and application development).</li> <li>Part of a completed or an emerging standard, but not (yet?) implemented in all browsers or implemented in the newest versions of the browsers.</li>
  36. </ul>
  37. <p>Detailed browser compatibility tables are located at the pages describing each property or method.</p><br><br>
  38. Documentation for this class was provided by <a href="https://developer.mozilla.org/en/DOM/document">MDN</a>. */
  39. @:native("Document")
  40. extern class Document extends Node
  41. {
  42. /** Returns a string containing the URL of the current document. */
  43. var URL(default,null) : String;
  44. /** Returns the currently focused element */
  45. var activeElement(default,null) : Element;
  46. /** Returns or sets the color of active links in the document body. */
  47. var alinkColor : String;
  48. var all : HTMLAllCollection;
  49. /** Returns a list of all of the anchors in the document. */
  50. var anchors(default,null) : HTMLCollection;
  51. /** Returns an ordered list of the applets within a document. */
  52. var applets(default,null) : HTMLCollection;
  53. /** Gets/sets the background color of the current document. */
  54. var bgColor : String;
  55. /** Returns the BODY node of the current document. Setter throws DOMException. */
  56. var body : Element;
  57. /** Returns the character set being used by the document. */
  58. var characterSet(default,null) : String;
  59. var charset : String;
  60. /** Indicates whether the document is rendered in Quirks or Strict mode. */
  61. var compatMode(default,null) : String;
  62. /** Returns a semicolon-separated list of the cookies for that document or sets a single cookie. Getter throws DOMException. Setter throws DOMException. */
  63. var cookie : String;
  64. var currentFullScreenElement(default,null) : Element;
  65. var defaultCharset(default,null) : String;
  66. /** Returns a reference to the window object. */
  67. var defaultView(default,null) : DOMWindow;
  68. /** Gets/sets WYSYWIG editing capability of <a title="en/Midas" rel="internal" href="https://developer.mozilla.org/en/Midas">Midas</a>. It can only be used for HTML documents. */
  69. var designMode : String;
  70. /** Gets/sets directionality (rtl/ltr) of the document */
  71. var dir : String;
  72. /** Returns the Document Type Definition (DTD) of the current document. */
  73. var doctype(default,null) : DocumentType;
  74. /** Returns the Element that is a direct child of document. For HTML documents, this is normally the HTML element. */
  75. var documentElement(default,null) : Element;
  76. /** Returns the document location. */
  77. var documentURI(default,null) : String;
  78. /** Returns the domain of the current document. Setter throws DOMException. */
  79. var domain : String;
  80. /** Returns a list of the embedded OBJECTS within the current document. */
  81. var embeds(default,null) : HTMLCollection;
  82. /** Gets/sets the foreground color, or text color, of the current document. */
  83. var fgColor : String;
  84. /** Returns a list of the FORM elements within the current document. */
  85. var forms(default,null) : HTMLCollection;
  86. var fullScreenKeyboardInputAllowed(default,null) : Bool;
  87. var fullscreenElement(default,null) : Element;
  88. var fullscreenEnabled(default,null) : Bool;
  89. /** Returns the HEAD node of the current document. */
  90. var head(default,null) : HeadElement;
  91. /** Gets/sets the height of the current document. */
  92. var height(default,null) : Int;
  93. var hidden(default,null) : Bool;
  94. /** Returns a list of the images in the current document. */
  95. var images(default,null) : HTMLCollection;
  96. /** Returns the DOM implementation associated with the current document. */
  97. var implementation(default,null) : DOMImplementation;
  98. /** Returns the encoding used when the document was parsed. */
  99. var inputEncoding(default,null) : String;
  100. var isFullScreen(default,null) : Bool;
  101. /** Returns the date on which the document was last modified. */
  102. var lastModified(default,null) : String;
  103. /** Gets/sets the color of hyperlinks in the document. */
  104. var linkColor : String;
  105. /** Returns a list of all the hyperlinks in the document. */
  106. var links(default,null) : HTMLCollection;
  107. /** Returns the URI of the current document. */
  108. var location : Location;
  109. var onabort : EventListener;
  110. var onbeforecopy : EventListener;
  111. var onbeforecut : EventListener;
  112. var onbeforepaste : EventListener;
  113. var onblur : EventListener;
  114. var onchange : EventListener;
  115. var onclick : EventListener;
  116. var oncontextmenu : EventListener;
  117. var oncopy : EventListener;
  118. var oncut : EventListener;
  119. var ondblclick : EventListener;
  120. var ondrag : EventListener;
  121. var ondragend : EventListener;
  122. var ondragenter : EventListener;
  123. var ondragleave : EventListener;
  124. var ondragover : EventListener;
  125. var ondragstart : EventListener;
  126. var ondrop : EventListener;
  127. var onerror : EventListener;
  128. var onfocus : EventListener;
  129. var onfullscreenchange : EventListener;
  130. var onfullscreenerror : EventListener;
  131. var oninput : EventListener;
  132. var oninvalid : EventListener;
  133. var onkeydown : EventListener;
  134. var onkeypress : EventListener;
  135. var onkeyup : EventListener;
  136. var onload : EventListener;
  137. var onmousedown : EventListener;
  138. var onmousemove : EventListener;
  139. var onmouseout : EventListener;
  140. var onmouseover : EventListener;
  141. var onmouseup : EventListener;
  142. var onmousewheel : EventListener;
  143. var onpaste : EventListener;
  144. var onpointerlockchange : EventListener;
  145. var onpointerlockerror : EventListener;
  146. /** <dl><dd>Returns the event handling code for the <code>readystatechange</code> event.</dd>
  147. </dl>
  148. <div class="geckoVersionNote"> <p>
  149. </p><div class="geckoVersionHeading">Gecko 9.0 note<div>(Firefox 9.0 / Thunderbird 9.0 / SeaMonkey 2.6)
  150. </div></div>
  151. <p></p> <p>Starting in Gecko 9.0 (Firefox 9.0 / Thunderbird 9.0 / SeaMonkey 2.6)
  152. , you can now use the syntax <code>if ("onabort" in document)</code> to determine whether or not a given event handler property exists. This is because event handler interfaces have been updated to be proper web IDL interfaces. See <a title="en/DOM/DOM event handlers" rel="internal" href="https://developer.mozilla.org/en/DOM/DOM_event_handlers">DOM event handlers</a> for details.</p>
  153. </div> */
  154. var onreadystatechange : EventListener;
  155. var onreset : EventListener;
  156. var onscroll : EventListener;
  157. var onsearch : EventListener;
  158. var onselect : EventListener;
  159. var onselectionchange : EventListener;
  160. var onselectstart : EventListener;
  161. var onsubmit : EventListener;
  162. var ontouchcancel : EventListener;
  163. var ontouchend : EventListener;
  164. var ontouchmove : EventListener;
  165. var ontouchstart : EventListener;
  166. /** Returns a list of the available plugins. */
  167. var plugins(default,null) : HTMLCollection;
  168. var pointerLockElement(default,null) : Element;
  169. var preferredStylesheetSet(default,null) : String;
  170. /** Returns loading status of the document */
  171. var readyState(default,null) : String;
  172. /** Returns the URI of the page that linked to this page. */
  173. var referrer(default,null) : String;
  174. /** Returns all the <code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/script">&lt;script&gt;</a></code>
  175. elements on the document. */
  176. var scripts(default,null) : HTMLCollection;
  177. var selectedStylesheetSet : String;
  178. /** Returns a list of the stylesheet objects on the current document. */
  179. var styleSheets(default,null) : StyleSheetList;
  180. /** Returns the title of the current document. */
  181. var title : String;
  182. var visibilityState(default,null) : String;
  183. /** Gets/sets the color of visited hyperlinks. */
  184. var vlinkColor : String;
  185. /** Returns the width of the current document. */
  186. var width(default,null) : Int;
  187. /** Returns the encoding as determined by the XML declaration.<br> <div class="note">Firefox 10 and later don't implement it anymore.</div> */
  188. var xmlEncoding(default,null) : String;
  189. /** Returns <code>true</code> if the XML declaration specifies the document is standalone (<em>e.g.,</em> An external part of the DTD affects the document's content), else <code>false</code>. Setter throws DOMException. */
  190. var xmlStandalone : Bool;
  191. /** Returns the version number as specified in the XML declaration or <code>"1.0"</code> if the declaration is absent. Setter throws DOMException. */
  192. var xmlVersion : String;
  193. function adoptNode( source : Node ) : Node;
  194. function cancelFullScreen() : Void;
  195. function captureEvents() : Void;
  196. function caretRangeFromPoint( x : Int, y : Int ) : Range;
  197. function clear() : Void;
  198. function close() : Void;
  199. function createAttribute( name : String ) : Attr;
  200. function createAttributeNS( ?namespaceURI : String, ?qualifiedName : String ) : Attr;
  201. function createCDATASection( data : String ) : CDATASection;
  202. function createComment( data : String ) : Comment;
  203. function createDocumentFragment() : DocumentFragment;
  204. function createElement( ?tagName : String ) : Element;
  205. function createElementNS( ?namespaceURI : String, ?qualifiedName : String ) : Element;
  206. function createEntityReference( name : String ) : EntityReference;
  207. function createEvent( eventType : String ) : Event;
  208. function createExpression( expression : String, resolver : XPathNSResolver ) : XPathExpression;
  209. function createNSResolver( nodeResolver : Node ) : XPathNSResolver;
  210. function createNodeIterator( root : Node, whatToShow : Int, filter : NodeFilter, expandEntityReferences : Bool ) : NodeIterator;
  211. function createProcessingInstruction( target : String, data : String ) : ProcessingInstruction;
  212. function createRange() : Range;
  213. function createTextNode( data : String ) : Text;
  214. function createTouch( window : DOMWindow, target : EventTarget, identifier : Int, pageX : Int, pageY : Int, screenX : Int, screenY : Int, radiusX : Int, radiusY : Int, rotationAngle : Float, force : Float ) : Touch;
  215. function createTouchList() : TouchList;
  216. function createTreeWalker( root : Node, whatToShow : Int, filter : NodeFilter, expandEntityReferences : Bool ) : TreeWalker;
  217. function elementFromPoint( x : Int, y : Int ) : Element;
  218. function evaluate( expression : String, contextNode : Node, resolver : XPathNSResolver, type : Int, inResult : XPathResult ) : XPathResult;
  219. function execCommand( command : String, userInterface : Bool, ?value : String ) : Bool;
  220. function exitFullscreen() : Void;
  221. function exitPointerLock() : Void;
  222. function getCSSCanvasContext( contextId : String, name : String, width : Int, height : Int ) : CanvasRenderingContext;
  223. function getElementById( elementId : String ) : Element;
  224. function getElementsByClassName( tagname : String ) : NodeList;
  225. function getElementsByName( elementName : String ) : NodeList;
  226. function getElementsByTagName( tagname : String ) : NodeList;
  227. function getElementsByTagNameNS( ?namespaceURI : String, localName : String ) : NodeList;
  228. function getOverrideStyle( element : Element, pseudoElement : String ) : CSSStyleDeclaration;
  229. function getSelection() : DOMSelection;
  230. function hasFocus() : Bool;
  231. function importNode( importedNode : Node, ?deep : Bool ) : Node;
  232. function open() : Void;
  233. function queryCommandEnabled( command : String ) : Bool;
  234. function queryCommandIndeterm( command : String ) : Bool;
  235. function queryCommandState( command : String ) : Bool;
  236. function queryCommandSupported( command : String ) : Bool;
  237. function queryCommandValue( command : String ) : String;
  238. function querySelector( selectors : String ) : Element;
  239. function querySelectorAll( selectors : String ) : NodeList;
  240. function releaseEvents() : Void;
  241. function write( text : String ) : Void;
  242. function writeln( text : String ) : Void;
  243. /** A typed shortcut for <code>createElement("td")</code>. */
  244. public inline function createTableCellElement() : TableCellElement { return cast createElement("td"); }
  245. /** A typed shortcut for <code>createElement("hr")</code>. */
  246. public inline function createHRElement() : HRElement { return cast createElement("hr"); }
  247. /** A typed shortcut for <code>createElement("marquee")</code>. */
  248. public inline function createMarqueeElement() : MarqueeElement { return cast createElement("marquee"); }
  249. /** A typed shortcut for <code>createElement("basefont")</code>. */
  250. public inline function createBaseFontElement() : BaseFontElement { return cast createElement("basefont"); }
  251. /** A typed shortcut for <code>createElement("select")</code>. */
  252. public inline function createSelectElement() : SelectElement { return cast createElement("select"); }
  253. /** A typed shortcut for <code>createElement("map")</code>. */
  254. public inline function createMapElement() : MapElement { return cast createElement("map"); }
  255. /** A typed shortcut for <code>createElement("form")</code>. */
  256. public inline function createFormElement() : FormElement { return cast createElement("form"); }
  257. /** A typed shortcut for <code>createElement("option")</code>. */
  258. public inline function createOptionElement() : OptionElement { return cast createElement("option"); }
  259. /** A typed shortcut for <code>createElement("label")</code>. */
  260. public inline function createLabelElement() : LabelElement { return cast createElement("label"); }
  261. /** A typed shortcut for <code>createElement("meta")</code>. */
  262. public inline function createMetaElement() : MetaElement { return cast createElement("meta"); }
  263. /** A typed shortcut for <code>createElement("img")</code>. */
  264. public inline function createImageElement() : ImageElement { return cast createElement("img"); }
  265. /** A typed shortcut for <code>createElement("dl")</code>. */
  266. public inline function createDListElement() : DListElement { return cast createElement("dl"); }
  267. /** A typed shortcut for <code>createElement("frame")</code>. */
  268. public inline function createFrameElement() : FrameElement { return cast createElement("frame"); }
  269. /** A typed shortcut for <code>createElement("mod")</code>. */
  270. public inline function createModElement() : ModElement { return cast createElement("mod"); }
  271. /** A typed shortcut for <code>createElement("ul")</code>. */
  272. public inline function createUListElement() : UListElement { return cast createElement("ul"); }
  273. /** A typed shortcut for <code>createElement("output")</code>. */
  274. public inline function createOutputElement() : OutputElement { return cast createElement("output"); }
  275. /** A typed shortcut for <code>createElement("ol")</code>. */
  276. public inline function createOListElement() : OListElement { return cast createElement("ol"); }
  277. /** A typed shortcut for <code>createElement("shadow")</code>. */
  278. public inline function createShadowElement() : ShadowElement { return cast createElement("shadow"); }
  279. /** A typed shortcut for <code>createElement("li")</code>. */
  280. public inline function createLIElement() : LIElement { return cast createElement("li"); }
  281. /** A typed shortcut for <code>createElement("datalist")</code>. */
  282. public inline function createDataListElement() : DataListElement { return cast createElement("datalist"); }
  283. /** A typed shortcut for <code>createElement("param")</code>. */
  284. public inline function createParamElement() : ParamElement { return cast createElement("param"); }
  285. /** A typed shortcut for <code>createElement("font")</code>. */
  286. public inline function createFontElement() : FontElement { return cast createElement("font"); }
  287. /** A typed shortcut for <code>createElement("track")</code>. */
  288. public inline function createTrackElement() : TrackElement { return cast createElement("track"); }
  289. /** A typed shortcut for <code>createElement("applet")</code>. */
  290. public inline function createAppletElement() : AppletElement { return cast createElement("applet"); }
  291. /** A typed shortcut for <code>createElement("area")</code>. */
  292. public inline function createAreaElement() : AreaElement { return cast createElement("area"); }
  293. /** A typed shortcut for <code>createElement("link")</code>. */
  294. public inline function createLinkElement() : LinkElement { return cast createElement("link"); }
  295. /** A typed shortcut for <code>createElement("div")</code>. */
  296. public inline function createDivElement() : DivElement { return cast createElement("div"); }
  297. /** A typed shortcut for <code>createElement("title")</code>. */
  298. public inline function createTitleElement() : TitleElement { return cast createElement("title"); }
  299. /** A typed shortcut for <code>createElement("style")</code>. */
  300. public inline function createStyleElement() : StyleElement { return cast createElement("style"); }
  301. /** A typed shortcut for <code>createElement("progress")</code>. */
  302. public inline function createProgressElement() : ProgressElement { return cast createElement("progress"); }
  303. /** A typed shortcut for <code>createElement("button")</code>. */
  304. public inline function createButtonElement() : ButtonElement { return cast createElement("button"); }
  305. /** A typed shortcut for <code>createElement("fieldset")</code>. */
  306. public inline function createFieldSetElement() : FieldSetElement { return cast createElement("fieldset"); }
  307. /** A typed shortcut for <code>createElement("a")</code>. */
  308. public inline function createAnchorElement() : AnchorElement { return cast createElement("a"); }
  309. /** A typed shortcut for <code>createElement("iframe")</code>. */
  310. public inline function createIFrameElement() : IFrameElement { return cast createElement("iframe"); }
  311. /** A typed shortcut for <code>createElement("span")</code>. */
  312. public inline function createSpanElement() : SpanElement { return cast createElement("span"); }
  313. /** A typed shortcut for <code>createElement("details")</code>. */
  314. public inline function createDetailsElement() : DetailsElement { return cast createElement("details"); }
  315. /** A typed shortcut for <code>createElement("body")</code>. */
  316. public inline function createBodyElement() : BodyElement { return cast createElement("body"); }
  317. /** A typed shortcut for <code>createElement("input")</code>. */
  318. public inline function createInputElement() : InputElement { return cast createElement("input"); }
  319. /** A typed shortcut for <code>createElement("embed")</code>. */
  320. public inline function createEmbedElement() : EmbedElement { return cast createElement("embed"); }
  321. /** A typed shortcut for <code>createElement("meter")</code>. */
  322. public inline function createMeterElement() : MeterElement { return cast createElement("meter"); }
  323. /** A typed shortcut for <code>createElement("pre")</code>. */
  324. public inline function createPreElement() : PreElement { return cast createElement("pre"); }
  325. /** A typed shortcut for <code>createElement("thead")</code>. */
  326. public inline function createTableSectionElement() : TableSectionElement { return cast createElement("thead"); }
  327. /** A typed shortcut for <code>createElement("head")</code>. */
  328. public inline function createHeadElement() : HeadElement { return cast createElement("head"); }
  329. /** A typed shortcut for <code>createElement("base")</code>. */
  330. public inline function createBaseElement() : BaseElement { return cast createElement("base"); }
  331. /** A typed shortcut for <code>createElement("optgroup")</code>. */
  332. public inline function createOptGroupElement() : OptGroupElement { return cast createElement("optgroup"); }
  333. /** A typed shortcut for <code>createElement("quote")</code>. */
  334. public inline function createQuoteElement() : QuoteElement { return cast createElement("quote"); }
  335. /** A typed shortcut for <code>createElement("audio")</code>. */
  336. public inline function createAudioElement() : AudioElement { return cast createElement("audio"); }
  337. /** A typed shortcut for <code>createElement("video")</code>. */
  338. public inline function createVideoElement() : VideoElement { return cast createElement("video"); }
  339. /** A typed shortcut for <code>createElement("legend")</code>. */
  340. public inline function createLegendElement() : LegendElement { return cast createElement("legend"); }
  341. /** A typed shortcut for <code>createElement("menu")</code>. */
  342. public inline function createMenuElement() : MenuElement { return cast createElement("menu"); }
  343. /** A typed shortcut for <code>createElement("frameset")</code>. */
  344. public inline function createFrameSetElement() : FrameSetElement { return cast createElement("frameset"); }
  345. /** A typed shortcut for <code>createElement("canvas")</code>. */
  346. public inline function createCanvasElement() : CanvasElement { return cast createElement("canvas"); }
  347. /** A typed shortcut for <code>createElement("keygen")</code>. */
  348. public inline function createKeygenElement() : KeygenElement { return cast createElement("keygen"); }
  349. /** A typed shortcut for <code>createElement("col")</code>. */
  350. public inline function createTableColElement() : TableColElement { return cast createElement("col"); }
  351. /** A typed shortcut for <code>createElement("dir")</code>. */
  352. public inline function createDirectoryElement() : DirectoryElement { return cast createElement("dir"); }
  353. /** A typed shortcut for <code>createElement("table")</code>. */
  354. public inline function createTableElement() : TableElement { return cast createElement("table"); }
  355. /** A typed shortcut for <code>createElement("tr")</code>. */
  356. public inline function createTableRowElement() : TableRowElement { return cast createElement("tr"); }
  357. /** A typed shortcut for <code>createElement("script")</code>. */
  358. public inline function createScriptElement() : ScriptElement { return cast createElement("script"); }
  359. /** A typed shortcut for <code>createElement("source")</code>. */
  360. public inline function createSourceElement() : SourceElement { return cast createElement("source"); }
  361. /** A typed shortcut for <code>createElement("p")</code>. */
  362. public inline function createParagraphElement() : ParagraphElement { return cast createElement("p"); }
  363. /** A typed shortcut for <code>createElement("content")</code>. */
  364. public inline function createContentElement() : ContentElement { return cast createElement("content"); }
  365. /** A typed shortcut for <code>createElement("br")</code>. */
  366. public inline function createBRElement() : BRElement { return cast createElement("br"); }
  367. /** A typed shortcut for <code>createElement("html")</code>. */
  368. public inline function createHtmlElement() : HtmlElement { return cast createElement("html"); }
  369. /** A typed shortcut for <code>createElement("textarea")</code>. */
  370. public inline function createTextAreaElement() : TextAreaElement { return cast createElement("textarea"); }
  371. /** A typed shortcut for <code>createElement("media")</code>. */
  372. public inline function createMediaElement() : MediaElement { return cast createElement("media"); }
  373. /** A typed shortcut for <code>createElement("object")</code>. */
  374. public inline function createObjectElement() : ObjectElement { return cast createElement("object"); }
  375. /** A typed shortcut for <code>createElement("caption")</code>. */
  376. public inline function createTableCaptionElement() : TableCaptionElement { return cast createElement("caption"); }
  377. }