Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(491)

Side by Side Diff: Source/core/dom/Element.idl

Issue 738833002: Un-deprecate APIs which have been un-removed in the DOM Standard (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: exclude Element.setAttributeNodeNS() Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Document.idl ('k') | Source/core/frame/UseCounter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21 interface Element : Node { 21 interface Element : Node {
22 22
23 // DOM Level 1 Core 23 // DOM Level 1 Core
24 24
25 readonly attribute DOMString? tagName; 25 readonly attribute DOMString? tagName;
26 26
27 DOMString? getAttribute(DOMString name); 27 DOMString? getAttribute(DOMString name);
28 [RaisesException, CustomElementCallbacks] void setAttribute(DOMString name, DOMString value); 28 [RaisesException, CustomElementCallbacks] void setAttribute(DOMString name, DOMString value);
29 [CustomElementCallbacks] void removeAttribute(DOMString name); 29 [CustomElementCallbacks] void removeAttribute(DOMString name);
30 [MeasureAs=ElementGetAttributeNode] Attr getAttributeNode([Default=Undefined ] optional DOMString name); // Removed from DOM4. 30 [MeasureAs=ElementGetAttributeNode] Attr getAttributeNode([Default=Undefined ] optional DOMString name);
31 [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNode] Attr setAttributeNode([Default=Undefined] optional Attr newAttr); // Removed fr om DOM4. 31 [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNode] Attr setAttributeNode([Default=Undefined] optional Attr newAttr);
32 [RaisesException, CustomElementCallbacks, MeasureAs=ElementRemoveAttributeNo de] Attr removeAttributeNode([Default=Undefined] optional Attr oldAttr); // Remo ved from DOM4. 32 [RaisesException, CustomElementCallbacks, MeasureAs=ElementRemoveAttributeNo de] Attr removeAttributeNode([Default=Undefined] optional Attr oldAttr);
33 HTMLCollection getElementsByTagName(DOMString name); 33 HTMLCollection getElementsByTagName(DOMString name);
34 34
35 [PerWorldBindings, ImplementedAs=attributesForBindings] readonly attribute N amedNodeMap attributes; 35 [PerWorldBindings, ImplementedAs=attributesForBindings] readonly attribute N amedNodeMap attributes;
36 [MeasureAs=HasAttributes] boolean hasAttributes(); 36 [MeasureAs=HasAttributes] boolean hasAttributes();
37 37
38 // DOM Level 2 Core 38 // DOM Level 2 Core
39 39
40 DOMString? getAttributeNS(DOMString? namespaceURI, DOMString localName); 40 DOMString? getAttributeNS(DOMString? namespaceURI, DOMString localName);
41 [RaisesException, CustomElementCallbacks] void setAttributeNS(DOMString? nam espaceURI, DOMString qualifiedName, DOMString value); 41 [RaisesException, CustomElementCallbacks] void setAttributeNS(DOMString? nam espaceURI, DOMString qualifiedName, DOMString value);
42 [CustomElementCallbacks] void removeAttributeNS(DOMString? namespaceURI, DOM String localName); 42 [CustomElementCallbacks] void removeAttributeNS(DOMString? namespaceURI, DOM String localName);
43 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc alName); 43 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc alName);
44 [MeasureAs=ElementGetAttributeNodeNS] Attr getAttributeNodeNS([Default=Undef ined] optional DOMString? namespaceURI, 44 [MeasureAs=ElementGetAttributeNodeNS] Attr getAttributeNodeNS([Default=Undef ined] optional DOMString? namespaceURI,
45 [Default=Undef ined] optional DOMString localName); // Removed from DOM4. 45 [Default=Undef ined] optional DOMString localName);
46 [RaisesException, CustomElementCallbacks, DeprecateAs=ElementSetAttributeNod eNS] Attr setAttributeNodeNS([Default=Undefined] optional Attr newAttr); // Remo ved from DOM4. 46 [RaisesException, CustomElementCallbacks, DeprecateAs=ElementSetAttributeNod eNS] Attr setAttributeNodeNS([Default=Undefined] optional Attr newAttr); // Remo ved from DOM4.
47 boolean hasAttribute(DOMString name); 47 boolean hasAttribute(DOMString name);
48 boolean hasAttributeNS(DOMString? namespaceURI, DOMString localName); 48 boolean hasAttributeNS(DOMString? namespaceURI, DOMString localName);
49 49
50 [PerWorldBindings] readonly attribute CSSStyleDeclaration style; 50 [PerWorldBindings] readonly attribute CSSStyleDeclaration style;
51 51
52 // DOM4 52 // DOM4
53 [Reflect] attribute DOMString id; 53 [Reflect] attribute DOMString id;
54 readonly attribute DOMString? namespaceURI; 54 readonly attribute DOMString? namespaceURI;
55 readonly attribute DOMString? prefix; 55 readonly attribute DOMString? prefix;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 attribute EventHandler onselectstart; 126 attribute EventHandler onselectstart;
127 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; 127 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel;
128 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; 128 [RuntimeEnabled=Touch] attribute EventHandler ontouchend;
129 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; 129 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove;
130 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; 130 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart;
131 attribute EventHandler onwheel; 131 attribute EventHandler onwheel;
132 }; 132 };
133 133
134 Element implements ParentNode; 134 Element implements ParentNode;
135 Element implements ChildNode; 135 Element implements ChildNode;
OLDNEW
« no previous file with comments | « Source/core/dom/Document.idl ('k') | Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698