Skip to content

Commit ed57496

Browse files
author
Simon Pieters
committed
[cssom] Make setProperty's value argument have [TreatNullAs=EmptyString]. https://www.w3.org/Bugs/Public/show_bug.cgi?id=22266
1 parent 907252b commit ed57496

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

cssom/Overview.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2157,11 +2157,11 @@ <h4 id="the-cssstyledeclaration-interface"><span class="secno">6.5.1 </span>The
21572157
getter DOMString <a href="#dom-cssstyledeclaration-item" title="dom-CSSStyleDeclaration-item">item</a>(unsigned long index);
21582158
DOMString <a href="#dom-cssstyledeclaration-getpropertyvalue" title="dom-CSSStyleDeclaration-getPropertyValue">getPropertyValue</a>(DOMString property);
21592159
DOMString <a href="#dom-cssstyledeclaration-getpropertypriority" title="dom-CSSStyleDeclaration-getPropertyPriority">getPropertyPriority</a>(DOMString property);
2160-
void <a href="#dom-cssstyledeclaration-setproperty" title="dom-CSSStyleDeclaration-setProperty">setProperty</a>(DOMString property, DOMString value, <!--
2160+
void <a href="#dom-cssstyledeclaration-setproperty" title="dom-CSSStyleDeclaration-setProperty">setProperty</a>(DOMString property, [TreatNullAs=EmptyString] DOMString value, <!--
21612161
-->[TreatNullAs=EmptyString] optional DOMString priority = "");
21622162
DOMString <a href="#dom-cssstyledeclaration-removeproperty" title="dom-CSSStyleDeclaration-removeProperty">removeProperty</a>(DOMString property);
21632163
readonly attribute <a href="#cssrule">CSSRule</a>? <a href="#dom-cssstyledeclaration-length" title="dom-CSSStyleDeclaration-length">parentRule</a>;
2164-
[TreatNullAs=EmptyString] attribute DOMString <a href="#dom-cssstyledeclaration-cssfloat" title="dom-CSSStyleDeclaration-cssFloat">cssFloat</a>;
2164+
attribute DOMString <a href="#dom-cssstyledeclaration-cssfloat" title="dom-CSSStyleDeclaration-cssFloat">cssFloat</a>;<!-- setProperty's value arg has [TreatNullAs=EmptyString] -->
21652165
};</pre>
21662166

21672167
<p>The object's <a class="external" href="http://dev.w3.org/2006/webapi/WebIDL/#dfn-supported-property-indices">supported property indices</a> are the numbers in the range zero to one less than the number of declarations in
@@ -2270,7 +2270,7 @@ <h4 id="the-cssstyledeclaration-interface"><span class="secno">6.5.1 </span>The
22702270
<var>property</var>.</p>
22712271

22722272
<pre class="idl">partial interface <a href="#cssstyledeclaration">CSSStyleDeclaration</a> {
2273-
[TreatNullAs=EmptyString] attribute DOMString _<var title="dom-CSSStyleDeclaration-attribute"><a href="#dom-cssstyledeclaration-attribute">attribute</a></var>;
2273+
attribute DOMString _<var title="dom-CSSStyleDeclaration-attribute"><a href="#dom-cssstyledeclaration-attribute">attribute</a></var>;
22742274
};</pre>
22752275

22762276
<p>The <dfn id="dom-cssstyledeclaration-attribute" title="dom-CSSStyleDeclaration-attribute"><code><var title="">attribute</var></code></dfn> attribute, on getting, must return the result of invoking

cssom/Overview.src.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2088,11 +2088,11 @@ <h4>The <code title>CSSStyleDeclaration</code> Interface</h4>
20882088
getter DOMString <span title=dom-CSSStyleDeclaration-item>item</span>(unsigned long index);
20892089
DOMString <span title=dom-CSSStyleDeclaration-getPropertyValue>getPropertyValue</span>(DOMString property);
20902090
DOMString <span title=dom-CSSStyleDeclaration-getPropertyPriority>getPropertyPriority</span>(DOMString property);
2091-
void <span title=dom-CSSStyleDeclaration-setProperty>setProperty</span>(DOMString property, DOMString value, <!--
2091+
void <span title=dom-CSSStyleDeclaration-setProperty>setProperty</span>(DOMString property, [TreatNullAs=EmptyString] DOMString value, <!--
20922092
-->[TreatNullAs=EmptyString] optional DOMString priority = "");
20932093
DOMString <span title=dom-CSSStyleDeclaration-removeProperty>removeProperty</span>(DOMString property);
20942094
readonly attribute <span>CSSRule</span>? <span title=dom-CSSStyleDeclaration-length>parentRule</span>;
2095-
[TreatNullAs=EmptyString] attribute DOMString <span title=dom-CSSStyleDeclaration-cssFloat>cssFloat</span>;
2095+
attribute DOMString <span title=dom-CSSStyleDeclaration-cssFloat>cssFloat</span>;<!-- setProperty's value arg has [TreatNullAs=EmptyString] -->
20962096
};</pre>
20972097

20982098
<p>The object's <span data-anolis-spec=webidl>supported property indices</span> are the numbers in the range zero to one less than the number of declarations in
@@ -2201,7 +2201,7 @@ <h4>The <code title>CSSStyleDeclaration</code> Interface</h4>
22012201
<var>property</var>.</p>
22022202

22032203
<pre class=idl>partial interface <span>CSSStyleDeclaration</span> {
2204-
[TreatNullAs=EmptyString] attribute DOMString _<var title=dom-CSSStyleDeclaration-attribute>attribute</var>;
2204+
attribute DOMString _<var title=dom-CSSStyleDeclaration-attribute>attribute</var>;
22052205
};</pre>
22062206

22072207
<p>The <dfn title=dom-CSSStyleDeclaration-attribute><code><var title>attribute</var></code></dfn> attribute, on getting, must return the result of invoking

0 commit comments

Comments
 (0)