PageRenderTime 77ms CodeModel.GetById 9ms RepoModel.GetById 0ms app.codeStats 0ms

/opensource.apple.com/source/WebCore/WebCore-1298.37/dom/Element.idl

#
IDL | 120 lines | 92 code | 11 blank | 17 comment | 0 complexity | 537092d76daff4d249c1262b165d8c74 MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, GPL-2.0, BSD-3-Clause, GPL-3.0, MPL-2.0, LGPL-2.0, LGPL-2.1, CC-BY-SA-3.0, IPL-1.0, ISC, AGPL-1.0, AGPL-3.0, JSON, Apache-2.0, 0BSD
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5. <title>Element.idl</title>
  6. <style type="text/css">
  7. .enscript-comment { font-style: italic; color: rgb(178,34,34); }
  8. .enscript-function-name { font-weight: bold; color: rgb(0,0,255); }
  9. .enscript-variable-name { font-weight: bold; color: rgb(184,134,11); }
  10. .enscript-keyword { font-weight: bold; color: rgb(160,32,240); }
  11. .enscript-reference { font-weight: bold; color: rgb(95,158,160); }
  12. .enscript-string { font-weight: bold; color: rgb(188,143,143); }
  13. .enscript-builtin { font-weight: bold; color: rgb(218,112,214); }
  14. .enscript-type { font-weight: bold; color: rgb(34,139,34); }
  15. .enscript-highlight { text-decoration: underline; color: 0; }
  16. </style>
  17. </head>
  18. <body id="top">
  19. <h1 style="margin:8px;" id="f1">Element.idl&nbsp;&nbsp;&nbsp;<span style="font-weight: normal; font-size: 0.5em;">[<a href="?txt">plain text</a>]</span></h1>
  20. <hr/>
  21. <div></div>
  22. <pre>
  23. <span class="enscript-comment">/*
  24. * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved.
  25. * Copyright (C) 2006 Samuel Weinig &lt;<a href="mailto:sam.weinig@gmail.com">sam.weinig@gmail.com</a>&gt;
  26. *
  27. * This library is free software; you can redistribute it and/or
  28. * modify it under the terms of the GNU Library General Public
  29. * License as published by the Free Software Foundation; either
  30. * version 2 of the License, or (at your option) any later version.
  31. *
  32. * This library is distributed in the hope that it will be useful,
  33. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  34. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  35. * Library General Public License for more details.
  36. *
  37. * You should have received a copy of the GNU Library General Public License
  38. * along with this library; see the file COPYING.LIB. If not, write to
  39. * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  40. * Boston, MA 02110-1301, USA.
  41. */</span>
  42. <span class="enscript-keyword">module</span> core {
  43. <span class="enscript-keyword">interface</span> [
  44. GenerateNativeConverter,
  45. InlineGetOwnPropertySlot
  46. ] Element : Node {
  47. <span class="enscript-comment">// DOM Level 1 Core
  48. </span>
  49. <span class="enscript-keyword">readonly</span> <span class="enscript-keyword">attribute</span> [ConvertNullStringTo=Null] DOMString tagName;
  50. [ConvertNullStringTo=Null] DOMString getAttribute(<span class="enscript-keyword">in</span> DOMString name);
  51. [OldStyleObjC] <span class="enscript-keyword">void</span> setAttribute(<span class="enscript-keyword">in</span> DOMString name,
  52. <span class="enscript-keyword">in</span> DOMString value)
  53. <span class="enscript-keyword">raises</span>(DOMException);
  54. <span class="enscript-keyword">void</span> removeAttribute(<span class="enscript-keyword">in</span> DOMString name)
  55. <span class="enscript-keyword">raises</span>(DOMException);
  56. Attr getAttributeNode(<span class="enscript-keyword">in</span> DOMString name);
  57. Attr setAttributeNode(<span class="enscript-keyword">in</span> Attr newAttr)
  58. <span class="enscript-keyword">raises</span>(DOMException);
  59. Attr removeAttributeNode(<span class="enscript-keyword">in</span> Attr oldAttr)
  60. <span class="enscript-keyword">raises</span>(DOMException);
  61. NodeList getElementsByTagName(<span class="enscript-keyword">in</span> DOMString name);
  62. <span class="enscript-comment">// DOM Level 2 Core
  63. </span>
  64. [OldStyleObjC] DOMString getAttributeNS(<span class="enscript-keyword">in</span> [ConvertNullToNullString] DOMString namespaceURI,
  65. <span class="enscript-keyword">in</span> DOMString localName);
  66. [OldStyleObjC] <span class="enscript-keyword">void</span> setAttributeNS(<span class="enscript-keyword">in</span> [ConvertNullToNullString] DOMString namespaceURI,
  67. <span class="enscript-keyword">in</span> DOMString qualifiedName,
  68. <span class="enscript-keyword">in</span> DOMString value)
  69. <span class="enscript-keyword">raises</span>(DOMException);
  70. [OldStyleObjC] <span class="enscript-keyword">void</span> removeAttributeNS(<span class="enscript-keyword">in</span> [ConvertNullToNullString] DOMString namespaceURI,
  71. <span class="enscript-keyword">in</span> DOMString localName)
  72. <span class="enscript-keyword">raises</span>(DOMException);
  73. [OldStyleObjC] NodeList getElementsByTagNameNS(<span class="enscript-keyword">in</span> [ConvertNullToNullString] DOMString namespaceURI,
  74. <span class="enscript-keyword">in</span> DOMString localName);
  75. [OldStyleObjC] Attr getAttributeNodeNS(<span class="enscript-keyword">in</span> [ConvertNullToNullString] DOMString namespaceURI,
  76. <span class="enscript-keyword">in</span> DOMString localName);
  77. Attr setAttributeNodeNS(<span class="enscript-keyword">in</span> Attr newAttr)
  78. <span class="enscript-keyword">raises</span>(DOMException);
  79. <span class="enscript-keyword">boolean</span> hasAttribute(<span class="enscript-keyword">in</span> DOMString name);
  80. [OldStyleObjC] <span class="enscript-keyword">boolean</span> hasAttributeNS(<span class="enscript-keyword">in</span> [ConvertNullToNullString] DOMString namespaceURI,
  81. <span class="enscript-keyword">in</span> DOMString localName);
  82. <span class="enscript-keyword">readonly</span> <span class="enscript-keyword">attribute</span> CSSStyleDeclaration style;
  83. <span class="enscript-comment">// Common extensions
  84. </span>
  85. <span class="enscript-keyword">readonly</span> <span class="enscript-keyword">attribute</span> <span class="enscript-keyword">long</span> offsetLeft;
  86. <span class="enscript-keyword">readonly</span> <span class="enscript-keyword">attribute</span> <span class="enscript-keyword">long</span> offsetTop;
  87. <span class="enscript-keyword">readonly</span> <span class="enscript-keyword">attribute</span> <span class="enscript-keyword">long</span> offsetWidth;
  88. <span class="enscript-keyword">readonly</span> <span class="enscript-keyword">attribute</span> <span class="enscript-keyword">long</span> offsetHeight;
  89. <span class="enscript-keyword">readonly</span> <span class="enscript-keyword">attribute</span> Element offsetParent;
  90. <span class="enscript-keyword">readonly</span> <span class="enscript-keyword">attribute</span> <span class="enscript-keyword">long</span> clientLeft;
  91. <span class="enscript-keyword">readonly</span> <span class="enscript-keyword">attribute</span> <span class="enscript-keyword">long</span> clientTop;
  92. <span class="enscript-keyword">readonly</span> <span class="enscript-keyword">attribute</span> <span class="enscript-keyword">long</span> clientWidth;
  93. <span class="enscript-keyword">readonly</span> <span class="enscript-keyword">attribute</span> <span class="enscript-keyword">long</span> clientHeight;
  94. <span class="enscript-keyword">attribute</span> <span class="enscript-keyword">long</span> scrollLeft;
  95. <span class="enscript-keyword">attribute</span> <span class="enscript-keyword">long</span> scrollTop;
  96. <span class="enscript-keyword">readonly</span> <span class="enscript-keyword">attribute</span> <span class="enscript-keyword">long</span> scrollWidth;
  97. <span class="enscript-keyword">readonly</span> <span class="enscript-keyword">attribute</span> <span class="enscript-keyword">long</span> scrollHeight;
  98. <span class="enscript-keyword">void</span> focus();
  99. <span class="enscript-keyword">void</span> blur();
  100. <span class="enscript-keyword">void</span> scrollIntoView(<span class="enscript-keyword">in</span> [Optional] <span class="enscript-keyword">boolean</span> alignWithTop);
  101. <span class="enscript-comment">// IE extensions
  102. </span>
  103. <span class="enscript-keyword">boolean</span> contains(<span class="enscript-keyword">in</span> Element element);
  104. <span class="enscript-comment">// WebKit extensions
  105. </span>
  106. <span class="enscript-keyword">void</span> scrollIntoViewIfNeeded(<span class="enscript-keyword">in</span> [Optional] <span class="enscript-keyword">boolean</span> centerIfNeeded);
  107. <span class="enscript-keyword">void</span> scrollByLines(<span class="enscript-keyword">in</span> <span class="enscript-keyword">long</span> lines);
  108. <span class="enscript-keyword">void</span> scrollByPages(<span class="enscript-keyword">in</span> <span class="enscript-keyword">long</span> pages);
  109. <span class="enscript-reference">#