Files
kiss-flixel/feedback-server/externs/js/html/IHTMLBaseFontElement.hx

835 lines
35 KiB
Haxe

package js.html;
/**
Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <basefont> elements.
**/
typedef IHTMLBaseFontElement = {
var face : String;
var size : Float;
/**
Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in §2.8 Observing event listeners.
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in §2.8 Observing event listeners.
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in §2.8 Observing event listeners.
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in §2.8 Observing event listeners.
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in §2.8 Observing event listeners.
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in §2.8 Observing event listeners.
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in §2.8 Observing event listeners.
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in §2.8 Observing event listeners.
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
**/
@:overload(function(type:String, listener:EventListenerOrEventListenerObject, ?options:ts.AnyOf2<Bool, js.html.AddEventListenerOptions>):Void { })
function addEventListener<K>(type:K, listener:(ev:Dynamic) -> Dynamic, ?options:ts.AnyOf2<Bool, js.html.AddEventListenerOptions>):Void;
/**
Removes the event listener in target's event listener list with the same type, callback, and options.
Removes the event listener in target's event listener list with the same type, callback, and options.
Removes the event listener in target's event listener list with the same type, callback, and options.
Removes the event listener in target's event listener list with the same type, callback, and options.
Removes the event listener in target's event listener list with the same type, callback, and options.
Removes the event listener in target's event listener list with the same type, callback, and options.
Removes the event listener in target's event listener list with the same type, callback, and options.
Removes the event listener in target's event listener list with the same type, callback, and options.
**/
@:overload(function(type:String, listener:EventListenerOrEventListenerObject, ?options:ts.AnyOf2<Bool, js.html.EventListenerOptions>):Void { })
function removeEventListener<K>(type:K, listener:(ev:Dynamic) -> Dynamic, ?options:ts.AnyOf2<Bool, js.html.EventListenerOptions>):Void;
var accessKey : String;
final accessKeyLabel : String;
var autocapitalize : String;
var dir : String;
var draggable : Bool;
var hidden : Bool;
var innerText : String;
var lang : String;
final offsetHeight : Float;
final offsetLeft : Float;
final offsetParent : Null<js.html.DOMElement>;
final offsetTop : Float;
final offsetWidth : Float;
var spellcheck : Bool;
var title : String;
var translate : Bool;
function click():Void;
final assignedSlot : Null<js.html.SlotElement>;
final attributes : js.html.NamedNodeMap;
/**
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.
**/
final classList : js.html.DOMTokenList;
/**
Returns the value of element's class content attribute. Can be set to change it.
**/
var className : String;
final clientHeight : Float;
final clientLeft : Float;
final clientTop : Float;
final clientWidth : Float;
/**
Returns the value of element's id content attribute. Can be set to change it.
**/
var id : String;
/**
Returns the local name.
**/
final localName : String;
/**
Returns the namespace.
**/
final namespaceURI : Null<String>;
@:optional
dynamic function onfullscreenchange(ev:js.html.Event):Dynamic;
@:optional
dynamic function onfullscreenerror(ev:js.html.Event):Dynamic;
var outerHTML : String;
/**
Returns the namespace prefix.
**/
final prefix : Null<String>;
final scrollHeight : Float;
var scrollLeft : Float;
var scrollTop : Float;
final scrollWidth : Float;
/**
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise.
**/
final shadowRoot : Null<js.html.ShadowRoot>;
/**
Returns the value of element's slot content attribute. Can be set to change it.
**/
var slot : String;
/**
Returns the HTML-uppercased qualified name.
**/
final tagName : String;
/**
Creates a shadow root for element and returns it.
**/
function attachShadow(init:js.html.ShadowRootInit):js.html.ShadowRoot;
/**
Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.
**/
@:overload(function<K>(selector:K):Null<Dynamic> { })
@:overload(function<E>(selector:String):Null<E> { })
function closest<K>(selector:K):Null<Dynamic>;
/**
Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.
**/
function getAttribute(qualifiedName:String):Null<String>;
/**
Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.
**/
function getAttributeNS(namespace:Null<String>, localName:String):Null<String>;
/**
Returns the qualified names of all element's attributes. Can contain duplicates.
**/
function getAttributeNames():Array<String>;
function getAttributeNode(name:String):Null<js.html.Attr>;
function getAttributeNodeNS(namespaceURI:String, localName:String):Null<js.html.Attr>;
function getBoundingClientRect():js.html.DOMRect;
function getClientRects():js.html.DOMRectList;
/**
Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
**/
function getElementsByClassName(classNames:String):HTMLCollectionOf<js.html.DOMElement>;
@:overload(function<K>(qualifiedName:K):HTMLCollectionOf<Dynamic> { })
@:overload(function(qualifiedName:String):HTMLCollectionOf<js.html.DOMElement> { })
function getElementsByTagName<K>(qualifiedName:K):HTMLCollectionOf<Dynamic>;
@:overload(function(namespaceURI:String, localName:String):HTMLCollectionOf<js.html.svg.Element> { })
@:overload(function(namespaceURI:String, localName:String):HTMLCollectionOf<js.html.DOMElement> { })
function getElementsByTagNameNS(namespaceURI:String, localName:String):HTMLCollectionOf<js.html.Element>;
/**
Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.
**/
function hasAttribute(qualifiedName:String):Bool;
/**
Returns true if element has an attribute whose namespace is namespace and local name is localName.
**/
function hasAttributeNS(namespace:Null<String>, localName:String):Bool;
/**
Returns true if element has attributes, and false otherwise.
**/
function hasAttributes():Bool;
function hasPointerCapture(pointerId:Float):Bool;
function insertAdjacentElement(position:InsertPosition, insertedElement:js.html.DOMElement):Null<js.html.DOMElement>;
function insertAdjacentHTML(where:InsertPosition, html:String):Void;
function insertAdjacentText(where:InsertPosition, text:String):Void;
/**
Returns true if matching selectors against element's root yields element, and false otherwise.
**/
function matches(selectors:String):Bool;
function msGetRegionContent():Dynamic;
function releasePointerCapture(pointerId:Float):Void;
/**
Removes element's first attribute whose qualified name is qualifiedName.
**/
function removeAttribute(qualifiedName:String):Void;
/**
Removes element's attribute whose namespace is namespace and local name is localName.
**/
function removeAttributeNS(namespace:Null<String>, localName:String):Void;
function removeAttributeNode(attr:js.html.Attr):js.html.Attr;
/**
Displays element fullscreen and resolves promise when done.
When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference.
**/
function requestFullscreen(?options:js.html.FullscreenOptions):js.lib.Promise<ts.Undefined>;
function requestPointerLock():Void;
@:overload(function(x:Float, y:Float):Void { })
function scroll(?options:js.html.ScrollToOptions):Void;
@:overload(function(x:Float, y:Float):Void { })
function scrollBy(?options:js.html.ScrollToOptions):Void;
function scrollIntoView(?arg:ts.AnyOf2<Bool, js.html.ScrollIntoViewOptions>):Void;
@:overload(function(x:Float, y:Float):Void { })
function scrollTo(?options:js.html.ScrollToOptions):Void;
/**
Sets the value of element's first attribute whose qualified name is qualifiedName to value.
**/
function setAttribute(qualifiedName:String, value:String):Void;
/**
Sets the value of element's attribute whose namespace is namespace and local name is localName to value.
**/
function setAttributeNS(namespace:Null<String>, qualifiedName:String, value:String):Void;
function setAttributeNode(attr:js.html.Attr):Null<js.html.Attr>;
function setAttributeNodeNS(attr:js.html.Attr):Null<js.html.Attr>;
function setPointerCapture(pointerId:Float):Void;
/**
If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.
Returns true if qualifiedName is now present, and false otherwise.
**/
function toggleAttribute(qualifiedName:String, ?force:Bool):Bool;
function webkitMatchesSelector(selectors:String):Bool;
/**
Returns node's node document's document base URL.
**/
final baseURI : String;
/**
Returns the children.
**/
final childNodes : NodeListOf<ChildNode>;
/**
Returns the first child.
**/
final firstChild : Null<ChildNode>;
/**
Returns true if node is connected and false otherwise.
**/
final isConnected : Bool;
/**
Returns the last child.
**/
final lastChild : Null<ChildNode>;
/**
Returns the next sibling.
**/
final nextSibling : Null<ChildNode>;
/**
Returns a string appropriate for the type of node.
**/
final nodeName : String;
/**
Returns the type of node.
**/
final nodeType : Float;
var nodeValue : Null<String>;
/**
Returns the node document. Returns null for documents.
**/
final ownerDocument : Null<js.html.Document>;
/**
Returns the parent element.
**/
final parentElement : Null<js.html.Element>;
/**
Returns the parent.
**/
final parentNode : Null<INode & ParentNode>;
/**
Returns the previous sibling.
**/
final previousSibling : Null<js.html.Node>;
var textContent : Null<String>;
function appendChild<T>(newChild:T):T;
/**
Returns a copy of node. If deep is true, the copy also includes the node's descendants.
**/
function cloneNode(?deep:Bool):js.html.Node;
/**
Returns a bitmask indicating the position of other relative to node.
**/
function compareDocumentPosition(other:js.html.Node):Float;
/**
Returns true if other is an inclusive descendant of node, and false otherwise.
**/
function contains(other:Null<js.html.Node>):Bool;
/**
Returns node's root.
**/
function getRootNode(?options:js.html.GetRootNodeOptions):js.html.Node;
/**
Returns whether node has children.
**/
function hasChildNodes():Bool;
function insertBefore<T>(newChild:T, refChild:Null<js.html.Node>):T;
function isDefaultNamespace(namespace:Null<String>):Bool;
/**
Returns whether node and otherNode have the same properties.
**/
function isEqualNode(otherNode:Null<js.html.Node>):Bool;
function isSameNode(otherNode:Null<js.html.Node>):Bool;
function lookupNamespaceURI(prefix:Null<String>):Null<String>;
function lookupPrefix(namespace:Null<String>):Null<String>;
/**
Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.
**/
function normalize():Void;
function removeChild<T>(oldChild:T):T;
function replaceChild<T>(newChild:js.html.Node, oldChild:T):T;
final ATTRIBUTE_NODE : Float;
/**
node is a CDATASection node.
**/
final CDATA_SECTION_NODE : Float;
/**
node is a Comment node.
**/
final COMMENT_NODE : Float;
/**
node is a DocumentFragment node.
**/
final DOCUMENT_FRAGMENT_NODE : Float;
/**
node is a document.
**/
final DOCUMENT_NODE : Float;
/**
Set when other is a descendant of node.
**/
final DOCUMENT_POSITION_CONTAINED_BY : Float;
/**
Set when other is an ancestor of node.
**/
final DOCUMENT_POSITION_CONTAINS : Float;
/**
Set when node and other are not in the same tree.
**/
final DOCUMENT_POSITION_DISCONNECTED : Float;
/**
Set when other is following node.
**/
final DOCUMENT_POSITION_FOLLOWING : Float;
final DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC : Float;
/**
Set when other is preceding node.
**/
final DOCUMENT_POSITION_PRECEDING : Float;
/**
node is a doctype.
**/
final DOCUMENT_TYPE_NODE : Float;
/**
node is an element.
**/
final ELEMENT_NODE : Float;
final ENTITY_NODE : Float;
final ENTITY_REFERENCE_NODE : Float;
final NOTATION_NODE : Float;
/**
node is a ProcessingInstruction node.
**/
final PROCESSING_INSTRUCTION_NODE : Float;
/**
node is a Text node.
**/
final TEXT_NODE : Float;
/**
Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
**/
function dispatchEvent(event:js.html.Event):Bool;
function animate(keyframes:Null<ts.AnyOf2<Array<Keyframe>, PropertyIndexedKeyframes>>, ?options:ts.AnyOf2<Float, js.html.KeyframeAnimationOptions>):js.html.Animation;
function getAnimations():Array<js.html.Animation>;
/**
Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
**/
function after(nodes:haxe.extern.Rest<ts.AnyOf2<String, js.html.Node>>):Void;
/**
Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
**/
function before(nodes:haxe.extern.Rest<ts.AnyOf2<String, js.html.Node>>):Void;
/**
Removes node.
**/
function remove():Void;
/**
Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
**/
function replaceWith(nodes:haxe.extern.Rest<ts.AnyOf2<String, js.html.Node>>):Void;
var innerHTML : String;
/**
Returns the first following sibling that is an element, and null otherwise.
**/
final nextElementSibling : Null<js.html.DOMElement>;
/**
Returns the first preceding sibling that is an element, and null otherwise.
**/
final previousElementSibling : Null<js.html.DOMElement>;
final childElementCount : Float;
/**
Returns the child elements.
**/
final children : js.html.HTMLCollection;
/**
Returns the first child that is an element, and null otherwise.
**/
final firstElementChild : Null<js.html.DOMElement>;
/**
Returns the last child that is an element, and null otherwise.
**/
final lastElementChild : Null<js.html.DOMElement>;
/**
Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
**/
function append(nodes:haxe.extern.Rest<ts.AnyOf2<String, js.html.Node>>):Void;
/**
Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
**/
function prepend(nodes:haxe.extern.Rest<ts.AnyOf2<String, js.html.Node>>):Void;
/**
Returns the first element that is a descendant of node that matches selectors.
**/
@:overload(function<K>(selectors:K):Null<Dynamic> { })
@:overload(function<E>(selectors:String):Null<E> { })
function querySelector<K>(selectors:K):Null<Dynamic>;
/**
Returns all element descendants of node that match selectors.
**/
@:overload(function<K>(selectors:K):NodeListOf<Dynamic> { })
@:overload(function<E>(selectors:String):NodeListOf<E> { })
function querySelectorAll<K>(selectors:K):NodeListOf<Dynamic>;
@:optional
dynamic function oncopy(ev:js.html.ClipboardEvent):Dynamic;
@:optional
dynamic function oncut(ev:js.html.ClipboardEvent):Dynamic;
@:optional
dynamic function onpaste(ev:js.html.ClipboardEvent):Dynamic;
final style : js.html.CSSStyleDeclaration;
var contentEditable : String;
var inputMode : String;
final isContentEditable : Bool;
/**
Fires when the user aborts the download.
**/
@:optional
dynamic function onabort(ev:js.html.UIEvent):Dynamic;
@:optional
dynamic function onanimationcancel(ev:js.html.AnimationEvent):Dynamic;
@:optional
dynamic function onanimationend(ev:js.html.AnimationEvent):Dynamic;
@:optional
dynamic function onanimationiteration(ev:js.html.AnimationEvent):Dynamic;
@:optional
dynamic function onanimationstart(ev:js.html.AnimationEvent):Dynamic;
@:optional
dynamic function onauxclick(ev:js.html.MouseEvent):Dynamic;
/**
Fires when the object loses the input focus.
**/
@:optional
dynamic function onblur(ev:js.html.FocusEvent):Dynamic;
@:optional
dynamic function oncancel(ev:js.html.Event):Dynamic;
/**
Occurs when playback is possible, but would require further buffering.
**/
@:optional
dynamic function oncanplay(ev:js.html.Event):Dynamic;
@:optional
dynamic function oncanplaythrough(ev:js.html.Event):Dynamic;
/**
Fires when the contents of the object or selection have changed.
**/
@:optional
dynamic function onchange(ev:js.html.Event):Dynamic;
/**
Fires when the user clicks the left mouse button on the object
**/
@:optional
dynamic function onclick(ev:js.html.MouseEvent):Dynamic;
@:optional
dynamic function onclose(ev:js.html.Event):Dynamic;
/**
Fires when the user clicks the right mouse button in the client area, opening the context menu.
**/
@:optional
dynamic function oncontextmenu(ev:js.html.MouseEvent):Dynamic;
@:optional
dynamic function oncuechange(ev:js.html.Event):Dynamic;
/**
Fires when the user double-clicks the object.
**/
@:optional
dynamic function ondblclick(ev:js.html.MouseEvent):Dynamic;
/**
Fires on the source object continuously during a drag operation.
**/
@:optional
dynamic function ondrag(ev:js.html.DragEvent):Dynamic;
/**
Fires on the source object when the user releases the mouse at the close of a drag operation.
**/
@:optional
dynamic function ondragend(ev:js.html.DragEvent):Dynamic;
/**
Fires on the target element when the user drags the object to a valid drop target.
**/
@:optional
dynamic function ondragenter(ev:js.html.DragEvent):Dynamic;
@:optional
dynamic function ondragexit(ev:js.html.Event):Dynamic;
/**
Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
**/
@:optional
dynamic function ondragleave(ev:js.html.DragEvent):Dynamic;
/**
Fires on the target element continuously while the user drags the object over a valid drop target.
**/
@:optional
dynamic function ondragover(ev:js.html.DragEvent):Dynamic;
/**
Fires on the source object when the user starts to drag a text selection or selected object.
**/
@:optional
dynamic function ondragstart(ev:js.html.DragEvent):Dynamic;
@:optional
dynamic function ondrop(ev:js.html.DragEvent):Dynamic;
/**
Occurs when the duration attribute is updated.
**/
@:optional
dynamic function ondurationchange(ev:js.html.Event):Dynamic;
/**
Occurs when the media element is reset to its initial state.
**/
@:optional
dynamic function onemptied(ev:js.html.Event):Dynamic;
/**
Occurs when the end of playback is reached.
**/
@:optional
dynamic function onended(ev:js.html.Event):Dynamic;
/**
Fires when an error occurs during object loading.
**/
@:optional
dynamic function onerror(event:ts.AnyOf2<String, js.html.Event>, ?source:String, ?lineno:Float, ?colno:Float, ?error:js.lib.Error):Dynamic;
/**
Fires when the object receives focus.
**/
@:optional
dynamic function onfocus(ev:js.html.FocusEvent):Dynamic;
@:optional
dynamic function ongotpointercapture(ev:js.html.PointerEvent):Dynamic;
@:optional
dynamic function oninput(ev:js.html.Event):Dynamic;
@:optional
dynamic function oninvalid(ev:js.html.Event):Dynamic;
/**
Fires when the user presses a key.
**/
@:optional
dynamic function onkeydown(ev:js.html.KeyboardEvent):Dynamic;
/**
Fires when the user presses an alphanumeric key.
**/
@:optional
dynamic function onkeypress(ev:js.html.KeyboardEvent):Dynamic;
/**
Fires when the user releases a key.
**/
@:optional
dynamic function onkeyup(ev:js.html.KeyboardEvent):Dynamic;
/**
Fires immediately after the browser loads the object.
**/
@:optional
dynamic function onload(ev:js.html.Event):Dynamic;
/**
Occurs when media data is loaded at the current playback position.
**/
@:optional
dynamic function onloadeddata(ev:js.html.Event):Dynamic;
/**
Occurs when the duration and dimensions of the media have been determined.
**/
@:optional
dynamic function onloadedmetadata(ev:js.html.Event):Dynamic;
@:optional
dynamic function onloadend(ev:ProgressEvent_<js.html.EventTarget>):Dynamic;
/**
Occurs when Internet Explorer begins looking for media data.
**/
@:optional
dynamic function onloadstart(ev:js.html.Event):Dynamic;
@:optional
dynamic function onlostpointercapture(ev:js.html.PointerEvent):Dynamic;
/**
Fires when the user clicks the object with either mouse button.
**/
@:optional
dynamic function onmousedown(ev:js.html.MouseEvent):Dynamic;
@:optional
dynamic function onmouseenter(ev:js.html.MouseEvent):Dynamic;
@:optional
dynamic function onmouseleave(ev:js.html.MouseEvent):Dynamic;
/**
Fires when the user moves the mouse over the object.
**/
@:optional
dynamic function onmousemove(ev:js.html.MouseEvent):Dynamic;
/**
Fires when the user moves the mouse pointer outside the boundaries of the object.
**/
@:optional
dynamic function onmouseout(ev:js.html.MouseEvent):Dynamic;
/**
Fires when the user moves the mouse pointer into the object.
**/
@:optional
dynamic function onmouseover(ev:js.html.MouseEvent):Dynamic;
/**
Fires when the user releases a mouse button while the mouse is over the object.
**/
@:optional
dynamic function onmouseup(ev:js.html.MouseEvent):Dynamic;
/**
Occurs when playback is paused.
**/
@:optional
dynamic function onpause(ev:js.html.Event):Dynamic;
/**
Occurs when the play method is requested.
**/
@:optional
dynamic function onplay(ev:js.html.Event):Dynamic;
/**
Occurs when the audio or video has started playing.
**/
@:optional
dynamic function onplaying(ev:js.html.Event):Dynamic;
@:optional
dynamic function onpointercancel(ev:js.html.PointerEvent):Dynamic;
@:optional
dynamic function onpointerdown(ev:js.html.PointerEvent):Dynamic;
@:optional
dynamic function onpointerenter(ev:js.html.PointerEvent):Dynamic;
@:optional
dynamic function onpointerleave(ev:js.html.PointerEvent):Dynamic;
@:optional
dynamic function onpointermove(ev:js.html.PointerEvent):Dynamic;
@:optional
dynamic function onpointerout(ev:js.html.PointerEvent):Dynamic;
@:optional
dynamic function onpointerover(ev:js.html.PointerEvent):Dynamic;
@:optional
dynamic function onpointerup(ev:js.html.PointerEvent):Dynamic;
/**
Occurs to indicate progress while downloading media data.
**/
@:optional
dynamic function onprogress(ev:ProgressEvent_<js.html.EventTarget>):Dynamic;
/**
Occurs when the playback rate is increased or decreased.
**/
@:optional
dynamic function onratechange(ev:js.html.Event):Dynamic;
/**
Fires when the user resets a form.
**/
@:optional
dynamic function onreset(ev:js.html.Event):Dynamic;
@:optional
dynamic function onresize(ev:js.html.UIEvent):Dynamic;
/**
Fires when the user repositions the scroll box in the scroll bar on the object.
**/
@:optional
dynamic function onscroll(ev:js.html.Event):Dynamic;
@:optional
dynamic function onsecuritypolicyviolation(ev:js.html.SecurityPolicyViolationEvent):Dynamic;
/**
Occurs when the seek operation ends.
**/
@:optional
dynamic function onseeked(ev:js.html.Event):Dynamic;
/**
Occurs when the current playback position is moved.
**/
@:optional
dynamic function onseeking(ev:js.html.Event):Dynamic;
/**
Fires when the current selection changes.
**/
@:optional
dynamic function onselect(ev:js.html.Event):Dynamic;
@:optional
dynamic function onselectionchange(ev:js.html.Event):Dynamic;
@:optional
dynamic function onselectstart(ev:js.html.Event):Dynamic;
/**
Occurs when the download has stopped.
**/
@:optional
dynamic function onstalled(ev:js.html.Event):Dynamic;
@:optional
dynamic function onsubmit(ev:js.html.Event):Dynamic;
/**
Occurs if the load operation has been intentionally halted.
**/
@:optional
dynamic function onsuspend(ev:js.html.Event):Dynamic;
/**
Occurs to indicate the current playback position.
**/
@:optional
dynamic function ontimeupdate(ev:js.html.Event):Dynamic;
@:optional
dynamic function ontoggle(ev:js.html.Event):Dynamic;
@:optional
dynamic function ontouchcancel(ev:js.html.TouchEvent):Dynamic;
@:optional
dynamic function ontouchend(ev:js.html.TouchEvent):Dynamic;
@:optional
dynamic function ontouchmove(ev:js.html.TouchEvent):Dynamic;
@:optional
dynamic function ontouchstart(ev:js.html.TouchEvent):Dynamic;
@:optional
dynamic function ontransitioncancel(ev:js.html.TransitionEvent):Dynamic;
@:optional
dynamic function ontransitionend(ev:js.html.TransitionEvent):Dynamic;
@:optional
dynamic function ontransitionrun(ev:js.html.TransitionEvent):Dynamic;
@:optional
dynamic function ontransitionstart(ev:js.html.TransitionEvent):Dynamic;
/**
Occurs when the volume is changed, or playback is muted or unmuted.
**/
@:optional
dynamic function onvolumechange(ev:js.html.Event):Dynamic;
/**
Occurs when playback stops because the next frame of a video resource is not available.
**/
@:optional
dynamic function onwaiting(ev:js.html.Event):Dynamic;
@:optional
dynamic function onwheel(ev:js.html.WheelEvent):Dynamic;
final dataset : js.html.DOMStringMap;
@:optional
var nonce : String;
var tabIndex : Float;
function blur():Void;
function focus(?options:FocusOptions):Void;
var color : String;
};