Skip to content

Commit 504b051

Browse files
committed
Parse the argument to unregisterProperty to escapes and syntax is handled properly. Fixes w3c#283.
1 parent 187a49d commit 504b051

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

css-properties-values-api/Overview.bs

+11-2
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,17 @@ with a <code>name</code> set to its sole argument.
245245
<a>associated <code>Document</code></a>'s
246246
{{[[registeredPropertySet]]}} slot.
247247

248-
2. If |property set|
249-
contains a record with a property name matching |name|
248+
2. Attempt to parse |name|
249+
as a <<custom-property-name>>.
250+
If this fails,
251+
<a>throw</a> a {{SyntaxError}}
252+
and exit this algorithm.
253+
254+
Otherwise,
255+
let |parsed name| be the parsed value.
256+
257+
3. If |property set|
258+
contains a record with a property name matching |parsed name|
250259
(compared codepoint-wise),
251260
remove the record from |property set|.
252261

0 commit comments

Comments
 (0)