Skip to content

Commit 1839d6a

Browse files
andruudemilio
authored andcommitted
[cssom] Throw on empty 'nested declarations rule' insertion
The current text expects 'parse a CSS declaration block' to return a syntax error, which it never actually returns. Follow-up to 7d8f87c.
1 parent 1f2cb52 commit 1839d6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cssom-1/Overview.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1859,7 +1859,7 @@ follow these steps:
18591859
<ul>
18601860
<li> Set <var>declarations</var> to the results of performing <a>parse a CSS declaration block</a>,
18611861
on argument <var>rule</var>.
1862-
<li> If <var>declarations</var> is a syntax error, <a>throw</a> a {{SyntaxError}} exception.
1862+
<li> If <var>declarations</var> is empty, <a>throw</a> a {{SyntaxError}} exception.
18631863
<li> Otherwise, set <var>new rule</var> to a new [=nested declarations rule=]
18641864
with <var>declarations</var> as it contents.
18651865
</ul>

0 commit comments

Comments
 (0)