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

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

Issue 2912383002: Add support for Element.getAttributeNames() (Closed)
Patch Set: rebased Created 3 years, 6 months 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | no next file » | 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,
(...skipping 26 matching lines...) Expand all
37 [Unscopable, CEReactions, Reflect] attribute DOMString slot; 37 [Unscopable, CEReactions, Reflect] attribute DOMString slot;
38 38
39 // Pointer Events 39 // Pointer Events
40 // https://w3c.github.io/pointerevents/#extensions-to-the-element-interface 40 // https://w3c.github.io/pointerevents/#extensions-to-the-element-interface
41 [RuntimeEnabled=PointerEvent, RaisesException] void setPointerCapture (long pointerId); 41 [RuntimeEnabled=PointerEvent, RaisesException] void setPointerCapture (long pointerId);
42 [RuntimeEnabled=PointerEvent, RaisesException] void releasePointerCapture (l ong pointerId); 42 [RuntimeEnabled=PointerEvent, RaisesException] void releasePointerCapture (l ong pointerId);
43 [RuntimeEnabled=PointerEvent] boolean hasPointerCapture (long pointerId); 43 [RuntimeEnabled=PointerEvent] boolean hasPointerCapture (long pointerId);
44 44
45 boolean hasAttributes(); 45 boolean hasAttributes();
46 [SameObject, PerWorldBindings, ImplementedAs=attributesForBindings] readonly attribute NamedNodeMap attributes; 46 [SameObject, PerWorldBindings, ImplementedAs=attributesForBindings] readonly attribute NamedNodeMap attributes;
47 sequence<DOMString> getAttributeNames();
47 DOMString? getAttribute(DOMString name); 48 DOMString? getAttribute(DOMString name);
48 DOMString? getAttributeNS(DOMString? namespaceURI, DOMString localName); 49 DOMString? getAttributeNS(DOMString? namespaceURI, DOMString localName);
49 [RaisesException, CEReactions, CustomElementCallbacks] void setAttribute(DOM String name, DOMString value); 50 [RaisesException, CEReactions, CustomElementCallbacks] void setAttribute(DOM String name, DOMString value);
50 [RaisesException, CEReactions, CustomElementCallbacks] void setAttributeNS(D OMString? namespaceURI, DOMString name, DOMString value); 51 [RaisesException, CEReactions, CustomElementCallbacks] void setAttributeNS(D OMString? namespaceURI, DOMString name, DOMString value);
51 [CEReactions, CustomElementCallbacks] void removeAttribute(DOMString name); 52 [CEReactions, CustomElementCallbacks] void removeAttribute(DOMString name);
52 [CEReactions, CustomElementCallbacks] void removeAttributeNS(DOMString? name spaceURI, DOMString localName); 53 [CEReactions, CustomElementCallbacks] void removeAttributeNS(DOMString? name spaceURI, DOMString localName);
53 boolean hasAttribute(DOMString name); 54 boolean hasAttribute(DOMString name);
54 boolean hasAttributeNS(DOMString? namespaceURI, DOMString localName); 55 boolean hasAttributeNS(DOMString? namespaceURI, DOMString localName);
55 56
56 Attr? getAttributeNode(DOMString name); 57 Attr? getAttributeNode(DOMString name);
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 attribute EventHandler oncut; 139 attribute EventHandler oncut;
139 attribute EventHandler onpaste; 140 attribute EventHandler onpaste;
140 attribute EventHandler onsearch; 141 attribute EventHandler onsearch;
141 attribute EventHandler onselectstart; 142 attribute EventHandler onselectstart;
142 attribute EventHandler onwheel; 143 attribute EventHandler onwheel;
143 }; 144 };
144 145
145 Element implements ParentNode; 146 Element implements ParentNode;
146 Element implements ChildNode; 147 Element implements ChildNode;
147 Element implements NonDocumentTypeChildNode; 148 Element implements NonDocumentTypeChildNode;
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698