FieldSetElement.hx 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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\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. A `Boolean` reflecting the `disabled` HTML attribute, indicating whether the user can interact with the control.
  33. **/
  34. var disabled : Bool;
  35. /**
  36. An `HTMLFormControlsCollection` or `HTMLCollection` referencing the containing form element, if this element is in a form.
  37. 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.
  38. **/
  39. var form(default,null) : FormElement;
  40. /**
  41. A `DOMString` reflecting the `name` HTML attribute, containing the name of the field set, used for submitting the form.
  42. **/
  43. var name : String;
  44. /**
  45. The `DOMString` `"fieldset"`.
  46. **/
  47. var type(default,null) : String;
  48. /**
  49. 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.
  50. **/
  51. var elements(default,null) : HTMLCollection;
  52. /**
  53. A `Boolean` `false`, because `fieldset` objects are never candidates for constraint validation.
  54. **/
  55. var willValidate(default,null) : Bool;
  56. /**
  57. A `ValidityState` representing the validity states that this element is in.
  58. **/
  59. var validity(default,null) : ValidityState;
  60. /**
  61. 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.
  62. **/
  63. var validationMessage(default,null) : String;
  64. /**
  65. Always returns `true` because `fieldset` objects are never candidates for constraint validation.
  66. **/
  67. function checkValidity() : Bool;
  68. function reportValidity() : Bool;
  69. /**
  70. 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.
  71. **/
  72. function setCustomValidity( error : String ) : Void;
  73. }