KeygenElement.hx 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /*
  2. * Copyright (C)2005-2013 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, do not edit!
  23. package js.html;
  24. /** <strong>Note:</strong>&nbsp;This page describes the Keygen Element interface as specified, not as currently implemented by Gecko. See <a rel="external" href="https://bugzilla.mozilla.org/show_bug.cgi?id=101019" class="external" title="">
  25. bug 101019</a>
  26. for details and status.<br><br>
  27. Documentation for this class was provided by <a href="https://developer.mozilla.org/en/DOM/HTMLKeygenElement">MDN</a>. */
  28. @:native("HTMLKeygenElement")
  29. extern class KeygenElement extends Element
  30. {
  31. /** Reflects the
  32. <code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/keygen#attr-autofocus">autofocus</a></code>
  33. &nbsp;HTML attribute, indicating that the form control should have input focus when the page loads. */
  34. var autofocus : Bool;
  35. /** Reflects the
  36. <code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/keygen#attr-challenge">challenge</a></code>
  37. HTML&nbsp;attribute, containing a challenge string that is packaged with the submitted key. */
  38. var challenge : String;
  39. /** Reflects the
  40. <code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/keygen#attr-disabled">disabled</a></code>
  41. &nbsp;HTML attribute, indicating that the control is not available for interaction. */
  42. var disabled : Bool;
  43. /** Indicates the control's form owner, reflecting the
  44. <code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/keygen#attr-form">form</a></code>
  45. &nbsp;HTML&nbsp;attribute if it is defined. */
  46. var form(default,null) : FormElement;
  47. /** Reflects the
  48. <code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/keygen#attr-keytype">keytype</a></code>
  49. HTML&nbsp;attribute, containing the type of key used. */
  50. var keytype : String;
  51. /** A list of label elements associated with this keygen element. */
  52. var labels(default,null) : NodeList;
  53. /** Reflects the
  54. <code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/keygen#attr-name">name</a></code>
  55. HTML attribute, containing the name for the control that is submitted with form data. */
  56. var name : String;
  57. /** Must be the value <code>keygen</code>. */
  58. var type(default,null) : String;
  59. /** 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 (<strong>willValidate</strong> is false), or it satisfies its constraints. */
  60. var validationMessage(default,null) : String;
  61. /** The validity states that this element is in. */
  62. var validity(default,null) : ValidityState;
  63. /** Always false because <code>keygen</code> objects are never candidates for constraint validation. */
  64. var willValidate(default,null) : Bool;
  65. function checkValidity() : Bool;
  66. function setCustomValidity( error : String ) : Void;
  67. }