AnchorElement.hx 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. /** DOM anchor elements expose the <a target="_blank" href="http://www.w3.org/TR/html5/text-level-semantics.html#htmlanchorelement" rel="external nofollow" class=" external" title="http://www.w3.org/TR/html5/text-level-semantics.html#htmlanchorelement">HTMLAnchorElement</a> (or <span><a href="https://developer.mozilla.org/en/HTML" rel="custom nofollow">HTML 4</a></span> <a target="_blank" title="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-48250443" href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-48250443" rel="external nofollow" class=" external"><code>HTMLAnchorElement</code></a>) interface, which provides special properties and methods (beyond the regular <a href="/api/js/html/Element" rel="internal">element</a> object interface they also have available to them by inheritance) for manipulating the layout and presentation of hyperlink elements.<br><br>
  25. Documentation for this class was provided by <a href="https://developer.mozilla.org/en/DOM/HTMLAnchorElement">MDN</a>. */
  26. @:native("HTMLAnchorElement")
  27. extern class AnchorElement extends Element
  28. {
  29. /** The character encoding of the linked resource.
  30. <span title="">Obsolete</span> in
  31. <span><a rel="custom" href="https://developer.mozilla.org/en/HTML/HTML5">HTML5</a></span> */
  32. var charset : String;
  33. /** Comma-separated list of coordinates.
  34. <span title="">Obsolete</span> in
  35. <span><a rel="custom" href="https://developer.mozilla.org/en/HTML/HTML5">HTML5</a></span> */
  36. var coords : String;
  37. var download : String;
  38. /** The fragment identifier (including the leading hash mark (#)), if any, in the referenced URL. */
  39. var hash : String;
  40. /** The hostname and port (if it's not the default port) in the referenced URL. */
  41. var host : String;
  42. /** The hostname in the referenced URL. */
  43. var hostname : String;
  44. /** Reflects the
  45. <code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/a#attr-href">href</a></code>
  46. HTML attribute, containing a valid URL of a linked resource. */
  47. var href : String;
  48. /** Reflects the
  49. <code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/a#attr-hreflang">hreflang</a></code>
  50. HTML&nbsp;attribute, indicating the language of the linked resource. */
  51. var hreflang : String;
  52. /** Anchor name.
  53. <span title="">Obsolete</span> in
  54. <span><a rel="custom" href="https://developer.mozilla.org/en/HTML/HTML5">HTML5</a></span> */
  55. var name : String;
  56. var origin(default,null) : String;
  57. /** The path name component, if any, of the referenced URL. */
  58. var pathname : String;
  59. var ping : String;
  60. /** The port component, if any, of the referenced URL. */
  61. var port : String;
  62. /** The protocol component (including trailing colon (:)), of the referenced URL. */
  63. var protocol : String;
  64. /** Reflects the
  65. <code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/a#attr-rel">rel</a></code>
  66. HTML attribute, specifying the relationship of the target object to the link object. */
  67. var rel : String;
  68. /** Reverse link type.
  69. <span title="">Obsolete</span> in
  70. <span><a rel="custom" href="https://developer.mozilla.org/en/HTML/HTML5">HTML5</a></span> */
  71. var rev : String;
  72. /** The search element (including leading question mark (?)), if any, of the referenced URL */
  73. var search : String;
  74. /** The shape of the active area.
  75. <span title="">Obsolete</span> in
  76. <span><a rel="custom" href="https://developer.mozilla.org/en/HTML/HTML5">HTML5</a></span> */
  77. var shape : String;
  78. /** Reflectst the
  79. <code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/a#attr-target">target</a></code>
  80. HTML attribute, indicating where to display the linked resource. */
  81. var target : String;
  82. /** Same as the <strong><a title="https://developer.mozilla.org/En/DOM/Node.textContent" rel="internal" href="https://developer.mozilla.org/En/DOM/Node.textContent">textContent</a></strong> property. */
  83. var text(default,null) : String;
  84. /** Reflects the
  85. <code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/a#attr-type">type</a></code>
  86. HTML attribute, indicating the MIME type of the linked resource. */
  87. var type : String;
  88. function toString() : String;
  89. }