1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164
|
/*
* 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 "Software"),
* 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, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", 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\HTMLObjectElement.webidl. Do not edit!
package js.html;
/**
The `HTMLObjectElement` interface provides special properties and methods (beyond those on the `HTMLElement` interface it also has available to it by inheritance) for manipulating the layout and presentation of `object` element, representing external resources.
Documentation [HTMLObjectElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement$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/HTMLObjectElement>
**/
@:native("HTMLObjectElement")
extern class ObjectElement extends Element {
/**
Is a `DOMString` that reflects the `data` HTML attribute, specifying the address of a resource's data.
**/
var data : String;
/**
Is a `DOMString` that reflects the `type` HTML attribute, specifying the MIME type of the resource.
**/
var type : String;
/**
Is a `Boolean` that reflects the `typeMustMatch` HTML attribute, indicating if the resource specified by `data` must only be played if it matches the `type` attribute.
**/
var typeMustMatch : Bool;
/**
Is a `DOMString` that reflects the `name` HTML attribute, specifying the name of the browsing context.
**/
var name : String;
/**
Is a `DOMString` that reflects the `usemap` HTML attribute, specifying a `map` element to use.
**/
var useMap : String;
/**
Retuns a `HTMLFormElement` representing the object element's form owner, or null if there isn't one.
**/
var form(default,null) : FormElement;
/**
Is a `DOMString` that reflects the `width` HTML attribute, specifying the displayed width of the resource in CSS pixels.
**/
var width : String;
/**
Is a `DOMString` that reflects the `height` HTML attribute, specifying the displayed height of the resource in CSS pixels.
**/
var height : String;
/**
Returns a `Document` representing the active document of the object element's nested browsing context, if any; otherwise `null`.
**/
var contentDocument(default,null) : HTMLDocument;
/**
Returns a `WindowProxy` representing the window proxy of the object element's nested browsing context, if any; otherwise `null`.
**/
var contentWindow(default,null) : Window;
/**
Returns a `Boolean` that indicates whether the element is a candidate for constraint validation. Always `false` for `HTMLObjectElement` objects.
**/
var willValidate(default,null) : Bool;
/**
Returns a `ValidityState` with the validity states that this element is in.
**/
var validity(default,null) : ValidityState;
/**
Returns a `DOMString` representing a localized message that describes the validation constraints that the control does not satisfy (if any). This is the empty string if the control is not a candidate for constraint validation (`willValidate` is `false`), or it satisfies its constraints.
**/
var validationMessage(default,null) : String;
/**
Is a `DOMString` representing an enumerated property indicating alignment of the element's contents with respect to the surrounding context. The possible values are `"left"`, `"right"`, `"justify"`, and `"center"`.
**/
var align : String;
/**
Is a `DOMString` that reflects the `archive` HTML attribute, containing a list of archives for resources for this object.
**/
var archive : String;
/**
Is a `DOMString` representing the name of an applet class file, containing either the applet's subclass, or the path to get to the class, including the class file itself.
**/
var code : String;
/**
Is a `Boolean` that reflects the `declare` HTML attribute, indicating that this is a declaration, not an instantiation, of the object.
**/
var declare : Bool;
/**
Is a `long` representing the horizontal space in pixels around the control.
**/
var hspace : Int;
/**
Is a `DOMString` that reflects the `standby` HTML attribute, specifying a message to display while the object loads.
**/
var standby : String;
/**
Is a `long` representing the horizontal space in pixels around the control.
**/
var vspace : Int;
/**
Is a `DOMString` that reflects the `codebase` HTML attribute, specifying the base path to use to resolve relative URIs.
**/
var codeBase : String;
/**
Is a `DOMString` that reflects the `codetype` HTML attribute, specifying the content type of the data.
**/
var codeType : String;
/**
Is a `DOMString` that reflects the `border` HTML attribute, specifying the width of a border around the object.
**/
var border : String;
/**
Retuns a `Boolean` that always is `true`, because `object` objects are never candidates for constraint validation.
**/
function checkValidity() : Bool;
function reportValidity() : Bool;
/**
Sets a custom validity message for the element. If this message is not the empty string, then the element is suffering from a custom validity error, and does not validate.
**/
function setCustomValidity( error : String ) : Void;
function getSVGDocument() : HTMLDocument;
}
|