2025-01-22 16:18:30 +01:00
/ *
* Copyright ( C ) 2005 - 2019 Haxe Foundation
*
* Permission is hereby granted , free of charge , to any person obtaining a
* copy of this software and associated documentation files ( the " S o f t w a r e " ) ,
* to deal in the Software without restriction , including without limitation
* the rights to use , copy , modify , merge , publish , distribute , sublicense ,
* and / or sell copies of the Software , and to permit persons to whom the
* Software is furnished to do so , s u b j e c t t o t h e f o l l o w i n g c o n d i t i o n s :
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software .
*
* THE SOFTWARE IS PROVIDED " A S I S " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR
* IMPLIED , INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY ,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT . IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM , DAMAGES OR OTHER
* LIABILITY , WHETHER IN AN ACTION OF CONTRACT , TORT OR OTHERWISE , ARISING
* FROM , OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE .
* /
// This file is generated from mozilla\HTMLDocument.webidl. Do not edit!
package js . html ;
/ * *
` HTMLDocument ` is an abstract i n t e r f a c e w h i c h e x t e n d s t h e ` Document ` i n t e r f a c e t o a d d H T M L - s p e c i f i c f e a t u r e s t o t h e d o c u m e n t o b j e c t . I t r e p r e s e n t s t h e r o o t o f t h e H T M L d o c u m e n t , w i t h i n w h i c h i t s e n t i r e D O M h i e r a r c h y r e s i d e s .
Documentation [ HTMLDocument ] ( https : //developer.mozilla.org/en-US/docs/Web/API/HTMLDocument) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
@ see < https : //developer.mozilla.org/en-US/docs/Web/API/HTMLDocument>
* * /
@ : native ( " H T M L D o c u m e n t " )
extern class HTMLDocument extends Document {
var domain : String ;
var cookie : String ;
var designMode : String ;
var fgColor : String ;
var linkColor : String ;
var vlinkColor : String ;
var alinkColor : String ;
var bgColor : String ;
var all( default , null ) : HTMLAllCollection ;
/** @throws DOMError */
@ : overload ( function ( ? type : String , replace : String = " " ) : HTMLDocument { } )
function open ( url : String , name : String , features : String , replace : Bool = false ) : Window ;
/** @throws DOMError */
function close ( ) : Void ;
/** @throws DOMError */
function write ( text : haxe . extern . Rest < String > ) : Void ;
/** @throws DOMError */
function writeln ( text : haxe . extern . Rest < String > ) : Void ;
/** @throws DOMError */
function execCommand ( commandId : String , showUI : Bool = false , value : String = " " ) : Bool ;
/** @throws DOMError */
function queryCommandEnabled ( commandId : String ) : Bool ;
/** @throws DOMError */
function queryCommandIndeterm ( commandId : String ) : Bool ;
/** @throws DOMError */
function queryCommandState ( commandId : String ) : Bool ;
function queryCommandSupported ( commandId : String ) : Bool ;
/** @throws DOMError */
function queryCommandValue ( commandId : String ) : String ;
function clear ( ) : Void ;
function captureEvents ( ) : Void ;
function releaseEvents ( ) : Void ;
/** Shorthand for creating an HTML `<td>` element. */
inline function createTableCellElement ( ) : TableCellElement { return cast createElement ( " t d " ) ; }
/** Shorthand for creating an HTML `<select>` element. */
inline function createSelectElement ( ) : SelectElement { return cast createElement ( " s e l e c t " ) ; }
/** Shorthand for creating an HTML `<font>` element. */
inline function createFontElement ( ) : FontElement { return cast createElement ( " f o n t " ) ; }
/** Shorthand for creating an HTML `<dl>` element. */
inline function createDListElement ( ) : DListElement { return cast createElement ( " d l " ) ; }
/** Shorthand for creating an HTML `<frame>` element. */
inline function createFrameElement ( ) : FrameElement { return cast createElement ( " f r a m e " ) ; }
/** Shorthand for creating an HTML `<ol>` element. */
inline function createOListElement ( ) : OListElement { return cast createElement ( " o l " ) ; }
/** Shorthand for creating an HTML `<li>` element. */
inline function createLIElement ( ) : LIElement { return cast createElement ( " l i " ) ; }
/** Shorthand for creating an HTML `<hr>` element. */
inline function createHRElement ( ) : HRElement { return cast createElement ( " h r " ) ; }
/** Shorthand for creating an HTML `<param>` element. */
inline function createParamElement ( ) : ParamElement { return cast createElement ( " p a r a m " ) ; }
/** Shorthand for creating an HTML `<label>` element. */
inline function createLabelElement ( ) : LabelElement { return cast createElement ( " l a b e l " ) ; }
/** Shorthand for creating an HTML `<track>` element. */
inline function createTrackElement ( ) : TrackElement { return cast createElement ( " t r a c k " ) ; }
/** Shorthand for creating an HTML `<div>` element. */
inline function createDivElement ( ) : DivElement { return cast createElement ( " d i v " ) ; }
/** Shorthand for creating an HTML `<title>` element. */
inline function createTitleElement ( ) : TitleElement { return cast createElement ( " t i t l e " ) ; }
/** Shorthand for creating an HTML `<a>` element. */
inline function createAnchorElement ( ) : AnchorElement { return cast createElement ( " a " ) ; }
/** Shorthand for creating an HTML `<style>` element. */
inline function createStyleElement ( ) : StyleElement { return cast createElement ( " s t y l e " ) ; }
/** Shorthand for creating an HTML `<embed>` element. */
inline function createEmbedElement ( ) : EmbedElement { return cast createElement ( " e m b e d " ) ; }
/** Shorthand for creating an HTML `<meter>` element. */
inline function createMeterElement ( ) : MeterElement { return cast createElement ( " m e t e r " ) ; }
/** Shorthand for creating an HTML `<picture>` element. */
inline function createPictureElement ( ) : PictureElement { return cast createElement ( " p i c t u r e " ) ; }
/** Shorthand for creating an HTML `<pre>` element. */
inline function createPreElement ( ) : PreElement { return cast createElement ( " p r e " ) ; }
/** Shorthand for creating an HTML `<thead>` element. */
inline function createTableSectionElement ( ) : TableSectionElement { return cast createElement ( " t h e a d " ) ; }
/** Shorthand for creating an HTML `<head>` element. */
inline function createHeadElement ( ) : HeadElement { return cast createElement ( " h e a d " ) ; }
/** Shorthand for creating an HTML `<optgroup>` element. */
inline function createOptGroupElement ( ) : OptGroupElement { return cast createElement ( " o p t g r o u p " ) ; }
/** Shorthand for creating an HTML `<audio>` element. */
inline function createAudioElement ( ) : AudioElement { return cast createElement ( " a u d i o " ) ; }
/** Shorthand for creating an HTML `<video>` element. */
inline function createVideoElement ( ) : VideoElement { return cast createElement ( " v i d e o " ) ; }
/** Shorthand for creating an HTML `<legend>` element. */
inline function createLegendElement ( ) : LegendElement { return cast createElement ( " l e g e n d " ) ; }
/** Shorthand for creating an HTML `<ul>` element. */
inline function createUListElement ( ) : UListElement { return cast createElement ( " u l " ) ; }
/** Shorthand for creating an HTML `<dir>` element. */
inline function createDirectoryElement ( ) : DirectoryElement { return cast createElement ( " d i r " ) ; }
/** Shorthand for creating an HTML `<table>` element. */
inline function createTableElement ( ) : TableElement { return cast createElement ( " t a b l e " ) ; }
/** Shorthand for creating an HTML `<slot>` element. */
inline function createSlotElement ( ) : SlotElement { return cast createElement ( " s l o t " ) ; }
/** Shorthand for creating an HTML `<source>` element. */
inline function createSourceElement ( ) : SourceElement { return cast createElement ( " s o u r c e " ) ; }
/** Shorthand for creating an HTML `<link>` element. */
inline function createLinkElement ( ) : LinkElement { return cast createElement ( " l i n k " ) ; }
/** Shorthand for creating an HTML `<iframe>` element. */
inline function createIFrameElement ( ) : IFrameElement { return cast createElement ( " i f r a m e " ) ; }
/** Shorthand for creating an HTML `<media>` element. */
inline function createMediaElement ( ) : MediaElement { return cast createElement ( " m e d i a " ) ; }
/** Shorthand for creating an HTML `<map>` element. */
inline function createMapElement ( ) : MapElement { return cast createElement ( " m a p " ) ; }
/** Shorthand for creating an HTML `<form>` element. */
inline function createFormElement ( ) : FormElement { return cast createElement ( " f o r m " ) ; }
/** Shorthand for creating an HTML `<option>` element. */
inline function createOptionElement ( ) : OptionElement { return cast createElement ( " o p t i o n " ) ; }
/** Shorthand for creating an HTML `<meta>` element. */
inline function createMetaElement ( ) : MetaElement { return cast createElement ( " m e t a " ) ; }
/** Shorthand for creating an HTML `<object>` element. */
inline function createObjectElement ( ) : ObjectElement { return cast createElement ( " o b j e c t " ) ; }
/** Shorthand for creating an HTML `<caption>` element. */
inline function createTableCaptionElement ( ) : TableCaptionElement { return cast createElement ( " c a p t i o n " ) ; }
/** Shorthand for creating an HTML `<img>` element. */
inline function createImageElement ( ) : ImageElement { return cast createElement ( " i m g " ) ; }
/** Shorthand for creating an HTML `<textarea>` element. */
inline function createTextAreaElement ( ) : TextAreaElement { return cast createElement ( " t e x t a r e a " ) ; }
/** Shorthand for creating an HTML `<script>` element. */
inline function createScriptElement ( ) : ScriptElement { return cast createElement ( " s c r i p t " ) ; }
/** Shorthand for creating an HTML `<datalist>` element. */
inline function createDataListElement ( ) : DataListElement { return cast createElement ( " d a t a l i s t " ) ; }
/** Shorthand for creating an HTML `<mod>` element. */
inline function createModElement ( ) : ModElement { return cast createElement ( " m o d " ) ; }
/** Shorthand for creating an HTML `<output>` element. */
inline function createOutputElement ( ) : OutputElement { return cast createElement ( " o u t p u t " ) ; }
/** Shorthand for creating an HTML `<area>` element. */
inline function createAreaElement ( ) : AreaElement { return cast createElement ( " a r e a " ) ; }
/** Shorthand for creating an HTML `<progress>` element. */
inline function createProgressElement ( ) : ProgressElement { return cast createElement ( " p r o g r e s s " ) ; }
/** Shorthand for creating an HTML `<button>` element. */
inline function createButtonElement ( ) : ButtonElement { return cast createElement ( " b u t t o n " ) ; }
/** Shorthand for creating an HTML `<fieldset>` element. */
inline function createFieldSetElement ( ) : FieldSetElement { return cast createElement ( " f i e l d s e t " ) ; }
/** Shorthand for creating an HTML `<menu>` element. */
inline function createMenuElement ( ) : MenuElement { return cast createElement ( " m e n u " ) ; }
/** Shorthand for creating an HTML `<br>` element. */
inline function createBRElement ( ) : BRElement { return cast createElement ( " b r " ) ; }
/** Shorthand for creating an HTML `<span>` element. */
inline function createSpanElement ( ) : SpanElement { return cast createElement ( " s p a n " ) ; }
/** Shorthand for creating an HTML `<details>` element. */
inline function createDetailsElement ( ) : DetailsElement { return cast createElement ( " d e t a i l s " ) ; }
/** Shorthand for creating an HTML `<body>` element. */
inline function createBodyElement ( ) : BodyElement { return cast createElement ( " b o d y " ) ; }
/** Shorthand for creating an HTML `<input>` element. */
inline function createInputElement ( ) : InputElement { return cast createElement ( " i n p u t " ) ; }
/** Shorthand for creating an HTML `<base>` element. */
inline function createBaseElement ( ) : BaseElement { return cast createElement ( " b a s e " ) ; }
/** Shorthand for creating an HTML `<quote>` element. */
inline function createQuoteElement ( ) : QuoteElement { return cast createElement ( " q u o t e " ) ; }
/** Shorthand for creating an HTML `<frameset>` element. */
inline function createFrameSetElement ( ) : FrameSetElement { return cast createElement ( " f r a m e s e t " ) ; }
/** Shorthand for creating an HTML `<canvas>` element. */
inline function createCanvasElement ( ) : CanvasElement { return cast createElement ( " c a n v a s " ) ; }
/** Shorthand for creating an HTML `<p>` element. */
inline function createParagraphElement ( ) : ParagraphElement { return cast createElement ( " p " ) ; }
/** Shorthand for creating an HTML `<col>` element. */
inline function createTableColElement ( ) : TableColElement { return cast createElement ( " c o l " ) ; }
/** Shorthand for creating an HTML `<tr>` element. */
inline function createTableRowElement ( ) : TableRowElement { return cast createElement ( " t r " ) ; }
/** Shorthand for creating an HTML `<html>` element. */
inline function createHtmlElement ( ) : HtmlElement { return cast createElement ( " h t m l " ) ; }
2026-05-21 23:40:20 -07:00
/** Shorthand for creating an HTML `<dialog>` element. */
inline function createDialoglElement ( ) : DialogElement { return cast createElement ( " d i a l o g " ) ; }
}