FieldSetElement.hx 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /*
  2. * Copyright (C)2005-2018 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\HTMLFieldSetElement.webidl. Do not edit!
  23. package js.html;
  24. /**
  25. The `HTMLFieldSetElement` interface has special properties and methods (beyond the regular `HTMLElement` interface it also has available to it by inheritance) for manipulating the layout and presentation of field-set elements.
  26. Documentation [HTMLFieldSetElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement$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/HTMLFieldSetElement>
  28. **/
  29. @:native("HTMLFieldSetElement")
  30. extern class FieldSetElement extends Element
  31. {
  32. /**
  33. A `Boolean` reflecting the `disabled` HTML attribute, indicating whether the user can interact with the control.
  34. **/
  35. var disabled : Bool;
  36. /**
  37. An `HTMLFormControlsCollection` or `HTMLCollection` referencing the containing form element, if this element is in a form.
  38. If the field set is not a descendant of a form element, then the attribute can be the ID of any form element in the same document it is related to, or the `null` value if none matches.
  39. **/
  40. var form(default,null) : FormElement;
  41. /**
  42. A `DOMString` reflecting the `name` HTML attribute, containing the name of the field set, used for submitting the form.
  43. **/
  44. var name : String;
  45. /**
  46. The `DOMString` `"fieldset"`.
  47. **/
  48. var type(default,null) : String;
  49. /**
  50. The elements belonging to this field set. The type of this property depends on the version of the spec that is implemented by the browser.
  51. **/
  52. var elements(default,null) : HTMLCollection;
  53. /**
  54. A `Boolean` `false`, because `fieldset` objects are never candidates for constraint validation.
  55. **/
  56. var willValidate(default,null) : Bool;
  57. /**
  58. A `ValidityState` representing the validity states that this element is in.
  59. **/
  60. var validity(default,null) : ValidityState;
  61. /**
  62. A `DOMString` representing a localized message that describes the validation constraints that the element does not satisfy (if any). This is the empty string if the element is not a candidate for constraint validation (`willValidate` is `false`), or it satisfies its constraints.
  63. **/
  64. var validationMessage(default,null) : String;
  65. /**
  66. Always returns `true` because `fieldset` objects are never candidates for constraint validation.
  67. **/
  68. function checkValidity() : Bool;
  69. function reportValidity() : Bool;
  70. /**
  71. Sets a custom validity message for the field set. If this message is not the empty string, then the field set is suffering from a custom validity error, and does not validate.
  72. **/
  73. function setCustomValidity( error : String ) : Void;
  74. }