Skip to content

Commit 46702d1

Browse files
author
Simon Pieters
committed
[cssom] Use default value in IDL for CSSStyleDeclaration#setProperty's third argument. Also fix placement of [TreatNullAs=EmptyString]. http://www.w3.org/mid/4FA8AA5E.6020700@mit.edu
1 parent 54ce157 commit 46702d1

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

cssom/Overview.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2079,7 +2079,7 @@ <h4 id="the-cssstyledeclaration-interface"><span class="secno">6.5.1 </span>The
20792079
getter DOMString <a href="#dom-cssstyledeclaration-item" title="dom-CSSStyleDeclaration-item">item</a>(unsigned long index);
20802080
DOMString <a href="#dom-cssstyledeclaration-getpropertyvalue" title="dom-CSSStyleDeclaration-getPropertyValue">getPropertyValue</a>(DOMString property);
20812081
DOMString <a href="#dom-cssstyledeclaration-getpropertypriority" title="dom-CSSStyleDeclaration-getPropertyPriority">getPropertyPriority</a>(DOMString property);
2082-
void <a href="#dom-cssstyledeclaration-setproperty" title="dom-CSSStyleDeclaration-setProperty">setProperty</a>(DOMString property, DOMString value, optional [TreatNullAs=EmptyString] DOMString priority);
2082+
void <a href="#dom-cssstyledeclaration-setproperty" title="dom-CSSStyleDeclaration-setProperty">setProperty</a>(DOMString property, DOMString value, [TreatNullAs=EmptyString] optional DOMString priority = "");
20832083
DOMString <a href="#dom-cssstyledeclaration-removeproperty" title="dom-CSSStyleDeclaration-removeProperty">removeProperty</a>(DOMString property);
20842084
readonly attribute <a href="#cssrule">CSSRule</a>? <a href="#dom-cssstyledeclaration-length" title="dom-CSSStyleDeclaration-length">parentRule</a>;
20852085
};</pre>
@@ -2147,7 +2147,6 @@ <h4 id="the-cssstyledeclaration-interface"><span class="secno">6.5.1 </span>The
21472147
terminate this algorithm.</li>
21482148
<li><p>If <var>value</var> is the empty string, invoke <code title="dom-CSSStyleDeclaration-removeProperty"><a href="#dom-cssstyledeclaration-removeproperty">removeProperty()</a></code>
21492149
with <var>property</var> as argument and terminate this algorithm.</li>
2150-
<li><p>If the <var>priority</var> argument has been omitted let <var>priority</var> be the empty string.</li>
21512150
<li><p>If <var>priority</var> is neither a valid priority nor the empty string terminate this algorithm.</li>
21522151
<li>
21532152
<p>If <a href="#parse-a-css-value" title="parse a CSS value">parsing the <var>value</var></a> returns <code>null</code> terminate this algorithm.

cssom/Overview.src.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2009,7 +2009,7 @@ <h4>The <code title>CSSStyleDeclaration</code> Interface</h4>
20092009
getter DOMString <span title=dom-CSSStyleDeclaration-item>item</span>(unsigned long index);
20102010
DOMString <span title=dom-CSSStyleDeclaration-getPropertyValue>getPropertyValue</span>(DOMString property);
20112011
DOMString <span title=dom-CSSStyleDeclaration-getPropertyPriority>getPropertyPriority</span>(DOMString property);
2012-
void <span title=dom-CSSStyleDeclaration-setProperty>setProperty</span>(DOMString property, DOMString value, optional [TreatNullAs=EmptyString] DOMString priority);
2012+
void <span title=dom-CSSStyleDeclaration-setProperty>setProperty</span>(DOMString property, DOMString value, [TreatNullAs=EmptyString] optional DOMString priority = "");
20132013
DOMString <span title=dom-CSSStyleDeclaration-removeProperty>removeProperty</span>(DOMString property);
20142014
readonly attribute <span>CSSRule</span>? <span title=dom-CSSStyleDeclaration-length>parentRule</span>;
20152015
};</pre>
@@ -2077,7 +2077,6 @@ <h4>The <code title>CSSStyleDeclaration</code> Interface</h4>
20772077
terminate this algorithm.</p></li>
20782078
<li><p>If <var>value</var> is the empty string, invoke <code title='dom-CSSStyleDeclaration-removeProperty'>removeProperty()</code>
20792079
with <var>property</var> as argument and terminate this algorithm.</p></li>
2080-
<li><p>If the <var>priority</var> argument has been omitted let <var>priority</var> be the empty string.</p></li>
20812080
<li><p>If <var>priority</var> is neither a valid priority nor the empty string terminate this algorithm.</p></li>
20822081
<li>
20832082
<p>If <span title='parse a CSS value'>parsing the <var>value</var></span> returns <code>null</code> terminate this algorithm.

0 commit comments

Comments
 (0)