AnchorElement.hx 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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\HTMLAnchorElement.webidl. Do not edit!
  23. package js.html;
  24. /**
  25. The `HTMLAnchorElement` interface represents hyperlink elements and provides special properties and methods (beyond those of the regular `HTMLElement` object interface that they inherit from) for manipulating the layout and presentation of such elements.
  26. Documentation [HTMLAnchorElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement$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/HTMLAnchorElement>
  28. **/
  29. @:native("HTMLAnchorElement")
  30. extern class AnchorElement extends Element {
  31. /**
  32. Is a `DOMString` that reflects the `target` HTML attribute, indicating where to display the linked resource.
  33. **/
  34. var target : String;
  35. /**
  36. Is a `DOMString` indicating that the linked resource is intended to be downloaded rather than displayed in the browser. The value represent the proposed name of the file. If the name is not a valid filename of the underlying OS, browser will adapt it.
  37. **/
  38. var download : String;
  39. var ping : String;
  40. /**
  41. Is a `DOMString` that reflects the `rel` HTML attribute, specifying the relationship of the target object to the linked object.
  42. **/
  43. var rel : String;
  44. /**
  45. Is a `DOMString` that reflects the `referrerpolicy` HTML attribute indicating which referrer to use.
  46. **/
  47. var referrerPolicy : String;
  48. /**
  49. Returns a `DOMTokenList` that reflects the `rel` HTML attribute, as a list of tokens.
  50. **/
  51. var relList(default,null) : DOMTokenList;
  52. /**
  53. Is a `DOMString` that reflects the `hreflang` HTML attribute, indicating the language of the linked resource.
  54. **/
  55. var hreflang : String;
  56. /**
  57. Is a `DOMString` that reflects the `type` HTML attribute, indicating the MIME type of the linked resource.
  58. **/
  59. var type : String;
  60. /**
  61. Is a `DOMString` being a synonym for the `Node.textContent` property.
  62. **/
  63. var text : String;
  64. /**
  65. Is a `DOMString` representing a comma-separated list of coordinates.
  66. **/
  67. var coords : String;
  68. /**
  69. Is a `DOMString` representing the character encoding of the linked resource.
  70. **/
  71. var charset : String;
  72. /**
  73. Is a `DOMString` representing the anchor name.
  74. **/
  75. var name : String;
  76. /**
  77. Is a `DOMString` representing that the `rev` HTML attribute, specifying the relationship of the link object to the target object.
  78. Note: Currently the W3C HTML 5.2 spec states that `rev` is no longer obsolete, whereas the WHATWG living standard still has it labeled obsolete. Until this discrepancy is resolved, you should still assume it is obsolete.
  79. **/
  80. var rev : String;
  81. /**
  82. Is a `DOMString` representing the shape of the active area.
  83. **/
  84. var shape : String;
  85. var href : String;
  86. var origin(default,null) : String;
  87. var protocol : String;
  88. var username : String;
  89. var password : String;
  90. var host : String;
  91. var hostname : String;
  92. var port : String;
  93. var pathname : String;
  94. var search : String;
  95. var hash : String;
  96. }