Skip to content

Commit 4c90e3a

Browse files
author
Simon Pieters
committed
[cssom] Fix setProperty to not always abort, oops
1 parent d26ce01 commit 4c90e3a

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

cssom/Overview.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2219,9 +2219,8 @@ <h4 id="the-cssstyledeclaration-interface"><span class="secno">6.5.1 </span>The
22192219
<li><p>If the <a href="#concept-css-declaration-block-readonly-flag" title="concept-css-declaration-block-readonly-flag">readonly flag</a> is set, <a class="external" href="http://dom.spec.whatwg.org/#concept-throw" title="concept-throw">throw</a>
22202220
an <code class="external"><a href="http://dom.spec.whatwg.org/#nomodificationallowederror">NoModificationAllowedError</a></code> exception and terminate these steps.</li>
22212221
<li><p>If <var title="">property</var> is not an <a class="external" href="http://dom.spec.whatwg.org/#ascii-case-insensitive">ASCII case-insensitive</a> match for a supported property that is defined to be
2222-
case-insensitive, terminate this algorithm.</li>
2223-
<li><p>If <var title="">property</var> is not a <a class="external" href="http://dom.spec.whatwg.org/#case-sensitive">case-sensitive</a> match for a supported property that is defined to be
2224-
case-sensitive, terminate this algorithm.</li>
2222+
case-insensitive, or if <var title="">property</var> is not a <a class="external" href="http://dom.spec.whatwg.org/#case-sensitive">case-sensitive</a> match for a supported property that is defined to
2223+
be case-sensitive, terminate this algorithm.</li>
22252224
<li><p>If <var title="">value</var> is the empty string, invoke <code title="dom-CSSStyleDeclaration-removeProperty"><a href="#dom-cssstyledeclaration-removeproperty">removeProperty()</a></code>
22262225
with <var title="">property</var> as argument and terminate this algorithm.</li>
22272226
<li><p>If <var title="">priority</var> is neither an <a class="external" href="http://dom.spec.whatwg.org/#ascii-case-insensitive">ASCII case-insensitive</a> match for the string "<code title="">important</code>"

cssom/Overview.src.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2150,9 +2150,8 @@ <h4>The <code title>CSSStyleDeclaration</code> Interface</h4>
21502150
<li><p>If the <span title=concept-css-declaration-block-readonly-flag>readonly flag</span> is set, <span data-anolis-spec=dom title=concept-throw>throw</span>
21512151
an <code data-anolis-spec=dom>NoModificationAllowedError</code> exception and terminate these steps.</li>
21522152
<li><p>If <var title>property</var> is not an <span data-anolis-spec=dom>ASCII case-insensitive</span> match for a supported property that is defined to be
2153-
case-insensitive, terminate this algorithm.</p></li>
2154-
<li><p>If <var title>property</var> is not a <span data-anolis-spec=dom>case-sensitive</span> match for a supported property that is defined to be
2155-
case-sensitive, terminate this algorithm.</p></li>
2153+
case-insensitive, or if <var title>property</var> is not a <span data-anolis-spec=dom>case-sensitive</span> match for a supported property that is defined to
2154+
be case-sensitive, terminate this algorithm.</p></li>
21562155
<li><p>If <var title>value</var> is the empty string, invoke <code title='dom-CSSStyleDeclaration-removeProperty'>removeProperty()</code>
21572156
with <var title>property</var> as argument and terminate this algorithm.</p></li>
21582157
<li><p>If <var title>priority</var> is neither an <span data-anolis-spec=dom>ASCII case-insensitive</span> match for the string "<code title>important</code>"

0 commit comments

Comments
 (0)