Skip to content

Commit 99541af

Browse files
author
Simon Pieters
committed
[cssom] Use [TreatNullAs=EmptyString] on CSSStyleDeclaration's properties. Fixes https://www.w3.org/Bugs/Public/show_bug.cgi?id=26817
1 parent 96624ab commit 99541af

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
@@ -2353,7 +2353,7 @@ <h4 id="the-cssstyledeclaration-interface"><span class="secno">6.6.1 </span>The
23532353
void <a href="#dom-cssstyledeclaration-setpropertypriority" title="dom-CSSStyleDeclaration-setPropertyPriority">setPropertyPriority</a>(DOMString property, [TreatNullAs=EmptyString] DOMString priority);
23542354
DOMString <a href="#dom-cssstyledeclaration-removeproperty" title="dom-CSSStyleDeclaration-removeProperty">removeProperty</a>(DOMString property);
23552355
readonly attribute <a href="#cssrule">CSSRule</a>? <a href="#dom-cssstyledeclaration-parentrule" title="dom-CSSStyleDeclaration-parentRule">parentRule</a>;
2356-
attribute DOMString <a href="#dom-cssstyledeclaration-cssfloat" title="dom-CSSStyleDeclaration-cssFloat">cssFloat</a>;<!-- setProperty's value arg has [TreatNullAs=EmptyString] -->
2356+
[TreatNullAs=EmptyString] attribute DOMString <a href="#dom-cssstyledeclaration-cssfloat" title="dom-CSSStyleDeclaration-cssFloat">cssFloat</a>;
23572357
};</pre>
23582358

23592359
<p>The object's <a class="external" data-anolis-spec="webidl" href="http://heycam.github.io/webidl/#dfn-supported-property-indices">supported property indices</a> are the numbers in the range zero to one less than the number of
@@ -2559,7 +2559,7 @@ <h4 id="the-cssstyledeclaration-interface"><span class="secno">6.6.1 </span>The
25592559
<var>property</var>.</p>
25602560

25612561
<pre class="idl extract">partial interface <a href="#cssstyledeclaration">CSSStyleDeclaration</a> {
2562-
attribute DOMString _<a href="#dom-cssstyledeclaration-camel-cased-attribute" title="dom-CSSStyleDeclaration-camel-cased-attribute"><var>camel-cased attribute</var></a>;
2562+
[TreatNullAs=EmptyString] attribute DOMString _<a href="#dom-cssstyledeclaration-camel-cased-attribute" title="dom-CSSStyleDeclaration-camel-cased-attribute"><var>camel-cased attribute</var></a>;
25632563
};</pre>
25642564

25652565
<p>The <dfn id="dom-cssstyledeclaration-camel-cased-attribute" title="dom-CSSStyleDeclaration-camel-cased-attribute"><code><var>camel-cased attribute</var></code></dfn> attribute, on getting, must return the
@@ -2580,7 +2580,7 @@ <h4 id="the-cssstyledeclaration-interface"><span class="secno">6.6.1 </span>The
25802580
the following partial interface applies where <var>dashed attribute</var> is <var>property</var>.</p>
25812581

25822582
<pre class="idl extract">partial interface <a href="#cssstyledeclaration">CSSStyleDeclaration</a> {
2583-
attribute DOMString _<a href="#dom-cssstyledeclaration-dashed-attribute" title="dom-CSSStyleDeclaration-dashed-attribute"><var>dashed attribute</var></a>;
2583+
[TreatNullAs=EmptyString] attribute DOMString _<a href="#dom-cssstyledeclaration-dashed-attribute" title="dom-CSSStyleDeclaration-dashed-attribute"><var>dashed attribute</var></a>;
25842584
};</pre>
25852585

25862586
<p>The <dfn id="dom-cssstyledeclaration-dashed-attribute" title="dom-CSSStyleDeclaration-dashed-attribute"><code><var>dashed attribute</var></code></dfn> attribute, on getting, must return the

cssom/Overview.src.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2270,7 +2270,7 @@ <h4>The <code title>CSSStyleDeclaration</code> Interface</h4>
22702270
void <span title=dom-CSSStyleDeclaration-setPropertyPriority>setPropertyPriority</span>(DOMString property, [TreatNullAs=EmptyString] DOMString priority);
22712271
DOMString <span title=dom-CSSStyleDeclaration-removeProperty>removeProperty</span>(DOMString property);
22722272
readonly attribute <span>CSSRule</span>? <span title=dom-CSSStyleDeclaration-parentRule>parentRule</span>;
2273-
attribute DOMString <span title=dom-CSSStyleDeclaration-cssFloat>cssFloat</span>;<!-- setProperty's value arg has [TreatNullAs=EmptyString] -->
2273+
[TreatNullAs=EmptyString] attribute DOMString <span title=dom-CSSStyleDeclaration-cssFloat>cssFloat</span>;
22742274
};</pre>
22752275

22762276
<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
@@ -2476,7 +2476,7 @@ <h4>The <code title>CSSStyleDeclaration</code> Interface</h4>
24762476
<var>property</var>.</p>
24772477

24782478
<pre class="idl extract">partial interface <span>CSSStyleDeclaration</span> {
2479-
attribute DOMString _<span title=dom-CSSStyleDeclaration-camel-cased-attribute><var>camel-cased attribute</var></span>;
2479+
[TreatNullAs=EmptyString] attribute DOMString _<span title=dom-CSSStyleDeclaration-camel-cased-attribute><var>camel-cased attribute</var></span>;
24802480
};</pre>
24812481

24822482
<p>The <dfn title=dom-CSSStyleDeclaration-camel-cased-attribute><code><var>camel-cased attribute</var></code></dfn> attribute, on getting, must return the
@@ -2497,7 +2497,7 @@ <h4>The <code title>CSSStyleDeclaration</code> Interface</h4>
24972497
the following partial interface applies where <var>dashed attribute</var> is <var>property</var>.</p>
24982498

24992499
<pre class="idl extract">partial interface <span>CSSStyleDeclaration</span> {
2500-
attribute DOMString _<span title=dom-CSSStyleDeclaration-dashed-attribute><var>dashed attribute</var></span>;
2500+
[TreatNullAs=EmptyString] attribute DOMString _<span title=dom-CSSStyleDeclaration-dashed-attribute><var>dashed attribute</var></span>;
25012501
};</pre>
25022502

25032503
<p>The <dfn title=dom-CSSStyleDeclaration-dashed-attribute><code><var>dashed attribute</var></code></dfn> attribute, on getting, must return the

0 commit comments

Comments
 (0)