2
0

ObjectElement.hx 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. /*
  2. * Copyright (C)2005-2019 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 from mozilla\HTMLObjectElement.webidl. Do not edit!
  23. package js.html;
  24. /**
  25. 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.
  26. 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/).
  27. @see <https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement>
  28. **/
  29. @:native("HTMLObjectElement")
  30. extern class ObjectElement extends Element {
  31. /**
  32. Is a `DOMString` that reflects the `data` HTML attribute, specifying the address of a resource's data.
  33. **/
  34. var data : String;
  35. /**
  36. Is a `DOMString` that reflects the `type` HTML attribute, specifying the MIME type of the resource.
  37. **/
  38. var type : String;
  39. /**
  40. 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.
  41. **/
  42. var typeMustMatch : Bool;
  43. /**
  44. Is a `DOMString` that reflects the `name` HTML attribute, specifying the name of the browsing context.
  45. **/
  46. var name : String;
  47. /**
  48. Is a `DOMString` that reflects the `usemap` HTML attribute, specifying a `map` element to use.
  49. **/
  50. var useMap : String;
  51. /**
  52. Retuns a `HTMLFormElement` representing the object element's form owner, or null if there isn't one.
  53. **/
  54. var form(default,null) : FormElement;
  55. /**
  56. Is a `DOMString` that reflects the `width` HTML attribute, specifying the displayed width of the resource in CSS pixels.
  57. **/
  58. var width : String;
  59. /**
  60. Is a `DOMString` that reflects the `height` HTML attribute, specifying the displayed height of the resource in CSS pixels.
  61. **/
  62. var height : String;
  63. /**
  64. Returns a `Document` representing the active document of the object element's nested browsing context, if any; otherwise `null`.
  65. **/
  66. var contentDocument(default,null) : HTMLDocument;
  67. /**
  68. Returns a `WindowProxy` representing the window proxy of the object element's nested browsing context, if any; otherwise `null`.
  69. **/
  70. var contentWindow(default,null) : Window;
  71. /**
  72. Returns a `Boolean` that indicates whether the element is a candidate for constraint validation. Always `false` for `HTMLObjectElement` objects.
  73. **/
  74. var willValidate(default,null) : Bool;
  75. /**
  76. Returns a `ValidityState` with the validity states that this element is in.
  77. **/
  78. var validity(default,null) : ValidityState;
  79. /**
  80. 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.
  81. **/
  82. var validationMessage(default,null) : String;
  83. /**
  84. 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"`.
  85. **/
  86. var align : String;
  87. /**
  88. Is a `DOMString` that reflects the `archive` HTML attribute, containing a list of archives for resources for this object.
  89. **/
  90. var archive : String;
  91. /**
  92. 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.
  93. **/
  94. var code : String;
  95. /**
  96. Is a `Boolean` that reflects the `declare` HTML attribute, indicating that this is a declaration, not an instantiation, of the object.
  97. **/
  98. var declare : Bool;
  99. /**
  100. Is a `long` representing the horizontal space in pixels around the control.
  101. **/
  102. var hspace : Int;
  103. /**
  104. Is a `DOMString` that reflects the `standby` HTML attribute, specifying a message to display while the object loads.
  105. **/
  106. var standby : String;
  107. /**
  108. Is a `long` representing the horizontal space in pixels around the control.
  109. **/
  110. var vspace : Int;
  111. /**
  112. Is a `DOMString` that reflects the `codebase` HTML attribute, specifying the base path to use to resolve relative URIs.
  113. **/
  114. var codeBase : String;
  115. /**
  116. Is a `DOMString` that reflects the `codetype` HTML attribute, specifying the content type of the data.
  117. **/
  118. var codeType : String;
  119. /**
  120. Is a `DOMString` that reflects the `border` HTML attribute, specifying the width of a border around the object.
  121. **/
  122. var border : String;
  123. /**
  124. Retuns a `Boolean` that always is `true`, because `object` objects are never candidates for constraint validation.
  125. **/
  126. function checkValidity() : Bool;
  127. function reportValidity() : Bool;
  128. /**
  129. 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.
  130. **/
  131. function setCustomValidity( error : String ) : Void;
  132. function getSVGDocument() : HTMLDocument;
  133. }