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

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

Issue 104263002: Remove TreatNullAs=NullString for Element.id and .className (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update SVGElement.id test Created 7 years 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 | « LayoutTests/svg/dom/svg-element-attribute-js-null-expected.txt ('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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 [MeasureAs=ElementGetAttributeNodeNS] Attr getAttributeNodeNS([TreatNullAs=N ullString,Default=Undefined] optional DOMString namespaceURI, 50 [MeasureAs=ElementGetAttributeNodeNS] Attr getAttributeNodeNS([TreatNullAs=N ullString,Default=Undefined] optional DOMString namespaceURI,
51 [Default=Undef ined] optional DOMString localName); // Removed from DOM4. 51 [Default=Undef ined] optional DOMString localName); // Removed from DOM4.
52 [RaisesException, CustomElementCallbacks] Attr setAttributeNodeNS([Default=U ndefined, StrictTypeChecking] optional Attr newAttr); 52 [RaisesException, CustomElementCallbacks] Attr setAttributeNodeNS([Default=U ndefined, StrictTypeChecking] optional Attr newAttr);
53 boolean hasAttribute(DOMString name); 53 boolean hasAttribute(DOMString name);
54 boolean hasAttributeNS([TreatNullAs=NullString,Default=Undefined] optional D OMString namespaceURI, 54 boolean hasAttributeNS([TreatNullAs=NullString,Default=Undefined] optional D OMString namespaceURI,
55 [Default=Undefined] optional DOMString localName); 55 [Default=Undefined] optional DOMString localName);
56 56
57 [PerWorldBindings] readonly attribute CSSStyleDeclaration style; 57 [PerWorldBindings] readonly attribute CSSStyleDeclaration style;
58 58
59 // DOM4 59 // DOM4
60 // iht.com relies on id returning the empty string when no id is present. 60 [Reflect] attribute DOMString id;
61 // Other browsers do this as well. So we don't convert null to JS null.
62 [Reflect, TreatNullAs=NullString] attribute DOMString id;
63 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr ing namespaceURI; 61 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr ing namespaceURI;
64 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, PerWorldBindings, R aisesException=Setter] attribute DOMString prefix; 62 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, PerWorldBindings, R aisesException=Setter] attribute DOMString prefix;
65 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr ing localName; 63 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr ing localName;
66 64
67 // Common extensions 65 // Common extensions
68 66
69 [PerWorldBindings] readonly attribute long offsetLeft; 67 [PerWorldBindings] readonly attribute long offsetLeft;
70 [PerWorldBindings] readonly attribute long offsetTop; 68 [PerWorldBindings] readonly attribute long offsetTop;
71 [PerWorldBindings] readonly attribute long offsetWidth; 69 [PerWorldBindings] readonly attribute long offsetWidth;
72 [PerWorldBindings] readonly attribute long offsetHeight; 70 [PerWorldBindings] readonly attribute long offsetHeight;
(...skipping 15 matching lines...) Expand all
88 86
89 void scrollIntoViewIfNeeded(optional boolean centerIfNeeded); 87 void scrollIntoViewIfNeeded(optional boolean centerIfNeeded);
90 void scrollByLines([Default=Undefined] optional long lines); 88 void scrollByLines([Default=Undefined] optional long lines);
91 void scrollByPages([Default=Undefined] optional long pages); 89 void scrollByPages([Default=Undefined] optional long pages);
92 90
93 // HTML 5 91 // HTML 5
94 NodeList getElementsByClassName([Default=Undefined] optional DOMString name) ; 92 NodeList getElementsByClassName([Default=Undefined] optional DOMString name) ;
95 [TreatNullAs=NullString, CustomElementCallbacks, PerWorldBindings, ActivityL ogging=SetterForIsolatedWorlds, RaisesException=Setter] attribute DOMString inne rHTML; 93 [TreatNullAs=NullString, CustomElementCallbacks, PerWorldBindings, ActivityL ogging=SetterForIsolatedWorlds, RaisesException=Setter] attribute DOMString inne rHTML;
96 [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter] att ribute DOMString outerHTML; 94 [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter] att ribute DOMString outerHTML;
97 95
98 [Reflect=class, TreatNullAs=NullString, PerWorldBindings] attribute DOMStrin g className; 96 [Reflect=class, PerWorldBindings] attribute DOMString className;
99 [PerWorldBindings] readonly attribute DOMTokenList classList; 97 [PerWorldBindings] readonly attribute DOMTokenList classList;
100 98
101 [PerWorldBindings] readonly attribute DOMStringMap dataset; 99 [PerWorldBindings] readonly attribute DOMStringMap dataset;
102 100
103 // NodeSelector - Selector API 101 // NodeSelector - Selector API
104 [RaisesException] Element querySelector(DOMString selectors); 102 [RaisesException] Element querySelector(DOMString selectors);
105 [RaisesException] NodeList querySelectorAll(DOMString selectors); 103 [RaisesException] NodeList querySelectorAll(DOMString selectors);
106 104
107 // WebKit extension, pending specification. 105 // WebKit extension, pending specification.
108 [RaisesException] boolean webkitMatchesSelector([Default=Undefined] optional DOMString selectors); 106 [RaisesException] boolean webkitMatchesSelector([Default=Undefined] optional DOMString selectors);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; 146 [RuntimeEnabled=Touch] attribute EventHandler ontouchend;
149 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; 147 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove;
150 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; 148 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart;
151 attribute EventHandler onwebkitfullscreenchange; 149 attribute EventHandler onwebkitfullscreenchange;
152 attribute EventHandler onwebkitfullscreenerror; 150 attribute EventHandler onwebkitfullscreenerror;
153 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH andler onwheel; 151 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH andler onwheel;
154 }; 152 };
155 153
156 Element implements ParentNode; 154 Element implements ParentNode;
157 Element implements ChildNode; 155 Element implements ChildNode;
OLDNEW
« no previous file with comments | « LayoutTests/svg/dom/svg-element-attribute-js-null-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698