/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
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <title>Element.idl</title>
- <style type="text/css">
- .enscript-comment { font-style: italic; color: rgb(178,34,34); }
- .enscript-function-name { font-weight: bold; color: rgb(0,0,255); }
- .enscript-variable-name { font-weight: bold; color: rgb(184,134,11); }
- .enscript-keyword { font-weight: bold; color: rgb(160,32,240); }
- .enscript-reference { font-weight: bold; color: rgb(95,158,160); }
- .enscript-string { font-weight: bold; color: rgb(188,143,143); }
- .enscript-builtin { font-weight: bold; color: rgb(218,112,214); }
- .enscript-type { font-weight: bold; color: rgb(34,139,34); }
- .enscript-highlight { text-decoration: underline; color: 0; }
- </style>
- </head>
- <body id="top">
- <h1 style="margin:8px;" id="f1">Element.idl <span style="font-weight: normal; font-size: 0.5em;">[<a href="?txt">plain text</a>]</span></h1>
- <hr/>
- <div></div>
- <pre>
- <span class="enscript-comment">/*
- * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved.
- * Copyright (C) 2006 Samuel Weinig <<a href="mailto:sam.weinig@gmail.com">sam.weinig@gmail.com</a>>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- */</span>
- <span class="enscript-keyword">module</span> core {
- <span class="enscript-keyword">interface</span> [
- GenerateNativeConverter,
- InlineGetOwnPropertySlot
- ] Element : Node {
- <span class="enscript-comment">// DOM Level 1 Core
- </span>
- <span class="enscript-keyword">readonly</span> <span class="enscript-keyword">attribute</span> [ConvertNullStringTo=Null] DOMString tagName;
- [ConvertNullStringTo=Null] DOMString getAttribute(<span class="enscript-keyword">in</span> DOMString name);
- [OldStyleObjC] <span class="enscript-keyword">void</span> setAttribute(<span class="enscript-keyword">in</span> DOMString name,
- <span class="enscript-keyword">in</span> DOMString value)
- <span class="enscript-keyword">raises</span>(DOMException);
- <span class="enscript-keyword">void</span> removeAttribute(<span class="enscript-keyword">in</span> DOMString name)
- <span class="enscript-keyword">raises</span>(DOMException);
- Attr getAttributeNode(<span class="enscript-keyword">in</span> DOMString name);
- Attr setAttributeNode(<span class="enscript-keyword">in</span> Attr newAttr)
- <span class="enscript-keyword">raises</span>(DOMException);
- Attr removeAttributeNode(<span class="enscript-keyword">in</span> Attr oldAttr)
- <span class="enscript-keyword">raises</span>(DOMException);
- NodeList getElementsByTagName(<span class="enscript-keyword">in</span> DOMString name);
- <span class="enscript-comment">// DOM Level 2 Core
- </span>
- [OldStyleObjC] DOMString getAttributeNS(<span class="enscript-keyword">in</span> [ConvertNullToNullString] DOMString namespaceURI,
- <span class="enscript-keyword">in</span> DOMString localName);
- [OldStyleObjC] <span class="enscript-keyword">void</span> setAttributeNS(<span class="enscript-keyword">in</span> [ConvertNullToNullString] DOMString namespaceURI,
- <span class="enscript-keyword">in</span> DOMString qualifiedName,
- <span class="enscript-keyword">in</span> DOMString value)
- <span class="enscript-keyword">raises</span>(DOMException);
- [OldStyleObjC] <span class="enscript-keyword">void</span> removeAttributeNS(<span class="enscript-keyword">in</span> [ConvertNullToNullString] DOMString namespaceURI,
- <span class="enscript-keyword">in</span> DOMString localName)
- <span class="enscript-keyword">raises</span>(DOMException);
- [OldStyleObjC] NodeList getElementsByTagNameNS(<span class="enscript-keyword">in</span> [ConvertNullToNullString] DOMString namespaceURI,
- <span class="enscript-keyword">in</span> DOMString localName);
- [OldStyleObjC] Attr getAttributeNodeNS(<span class="enscript-keyword">in</span> [ConvertNullToNullString] DOMString namespaceURI,
- <span class="enscript-keyword">in</span> DOMString localName);
- Attr setAttributeNodeNS(<span class="enscript-keyword">in</span> Attr newAttr)
- <span class="enscript-keyword">raises</span>(DOMException);
- <span class="enscript-keyword">boolean</span> hasAttribute(<span class="enscript-keyword">in</span> DOMString name);
- [OldStyleObjC] <span class="enscript-keyword">boolean</span> hasAttributeNS(<span class="enscript-keyword">in</span> [ConvertNullToNullString] DOMString namespaceURI,
- <span class="enscript-keyword">in</span> DOMString localName);
- <span class="enscript-keyword">readonly</span> <span class="enscript-keyword">attribute</span> CSSStyleDeclaration style;
- <span class="enscript-comment">// Common extensions
- </span>
- <span class="enscript-keyword">readonly</span> <span class="enscript-keyword">attribute</span> <span class="enscript-keyword">long</span> offsetLeft;
- <span class="enscript-keyword">readonly</span> <span class="enscript-keyword">attribute</span> <span class="enscript-keyword">long</span> offsetTop;
- <span class="enscript-keyword">readonly</span> <span class="enscript-keyword">attribute</span> <span class="enscript-keyword">long</span> offsetWidth;
- <span class="enscript-keyword">readonly</span> <span class="enscript-keyword">attribute</span> <span class="enscript-keyword">long</span> offsetHeight;
- <span class="enscript-keyword">readonly</span> <span class="enscript-keyword">attribute</span> Element offsetParent;
- <span class="enscript-keyword">readonly</span> <span class="enscript-keyword">attribute</span> <span class="enscript-keyword">long</span> clientLeft;
- <span class="enscript-keyword">readonly</span> <span class="enscript-keyword">attribute</span> <span class="enscript-keyword">long</span> clientTop;
- <span class="enscript-keyword">readonly</span> <span class="enscript-keyword">attribute</span> <span class="enscript-keyword">long</span> clientWidth;
- <span class="enscript-keyword">readonly</span> <span class="enscript-keyword">attribute</span> <span class="enscript-keyword">long</span> clientHeight;
- <span class="enscript-keyword">attribute</span> <span class="enscript-keyword">long</span> scrollLeft;
- <span class="enscript-keyword">attribute</span> <span class="enscript-keyword">long</span> scrollTop;
- <span class="enscript-keyword">readonly</span> <span class="enscript-keyword">attribute</span> <span class="enscript-keyword">long</span> scrollWidth;
- <span class="enscript-keyword">readonly</span> <span class="enscript-keyword">attribute</span> <span class="enscript-keyword">long</span> scrollHeight;
- <span class="enscript-keyword">void</span> focus();
- <span class="enscript-keyword">void</span> blur();
- <span class="enscript-keyword">void</span> scrollIntoView(<span class="enscript-keyword">in</span> [Optional] <span class="enscript-keyword">boolean</span> alignWithTop);
- <span class="enscript-comment">// IE extensions
- </span>
- <span class="enscript-keyword">boolean</span> contains(<span class="enscript-keyword">in</span> Element element);
- <span class="enscript-comment">// WebKit extensions
- </span>
- <span class="enscript-keyword">void</span> scrollIntoViewIfNeeded(<span class="enscript-keyword">in</span> [Optional] <span class="enscript-keyword">boolean</span> centerIfNeeded);
- <span class="enscript-keyword">void</span> scrollByLines(<span class="enscript-keyword">in</span> <span class="enscript-keyword">long</span> lines);
- <span class="enscript-keyword">void</span> scrollByPages(<span class="enscript-keyword">in</span> <span class="enscript-keyword">long</span> pages);
- <span class="enscript-reference">#