ObjectElement.hx 6.1 KB

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