LinkElement.hx 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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\HTMLLinkElement.webidl. Do not edit!
  23. package js.html;
  24. /**
  25. The `HTMLLinkElement` interface represents reference information for external resources and the relationship of those resources to a document and vice-versa. This object inherits all of the properties and methods of the `HTMLElement` interface.
  26. Documentation [HTMLLinkElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement$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/HTMLLinkElement>
  28. **/
  29. @:native("HTMLLinkElement")
  30. extern class LinkElement extends Element {
  31. /**
  32. Is a `Boolean` which represents whether the link is disabled; currently only used with style sheet links.
  33. **/
  34. var disabled : Bool;
  35. /**
  36. Is a `DOMString` representing the URI for the target resource.
  37. **/
  38. var href : String;
  39. /**
  40. Is a `DOMString` that corresponds to the CORS setting for this link element. See CORS settings attributes for details.
  41. **/
  42. var crossOrigin : String;
  43. /**
  44. Is a `DOMString` representing the forward relationship of the linked resource from the document to the resource.
  45. **/
  46. var rel : String;
  47. /**
  48. Is a `DOMTokenList` that reflects the `rel` HTML attribute, as a list of tokens.
  49. **/
  50. var relList(default,null) : DOMTokenList;
  51. /**
  52. Is a `DOMString` representing a list of one or more media formats to which the resource applies.
  53. **/
  54. var media : String;
  55. /**
  56. Is a `DOMString` representing the language code for the linked resource.
  57. **/
  58. var hreflang : String;
  59. /**
  60. Is a `DOMString` representing the MIME type of the linked resource.
  61. **/
  62. var type : String;
  63. /**
  64. Is a `DOMString` that reflects the `referrerpolicy` HTML attribute indicating which referrer to use.
  65. **/
  66. var referrerPolicy : String;
  67. /**
  68. Is a `DOMSettableTokenList` that reflects the `sizes` HTML attribute, as a list of tokens.
  69. **/
  70. var sizes(default,null) : DOMTokenList;
  71. /**
  72. Is a `DOMString` representing the character encoding for the target resource.
  73. **/
  74. var charset : String;
  75. /**
  76. Is a `DOMString` representing the reverse relationship of the linked resource from the resource to the document.
  77. 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.
  78. **/
  79. var rev : String;
  80. /**
  81. Is a `DOMString` representing the name of the target frame to which the resource applies.
  82. **/
  83. var target : String;
  84. var integrity : String;
  85. /**
  86. Is a `DOMString` representing the type of content being loaded by the HTML link.
  87. **/
  88. var as : String;
  89. var sheet(default,null) : StyleSheet;
  90. }