Skip to content

Commit c3efc4d

Browse files
committed
[css-variables] Make delete() return a boolean, like Map does.
1 parent f257366 commit c3efc4d

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

css-variables/Overview.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ <h3 id="the-cssstyledeclaration-interface" data-level="4.1"><span class="secno">
674674
DOMString get(DOMString varName);
675675
boolean has(DOMString varName);
676676
void set(DOMString varName, DOMString varValue);
677-
DOMString delete(DOMString varName);
677+
boolean delete(DOMString varName);
678678
}
679679
</pre>
680680
<p> The <a href="http://dev.w3.org/2006/webapi/WebIDL/#REPLACE-ME">map tuples</a>
@@ -717,7 +717,9 @@ <h3 id="the-cssstyledeclaration-interface" data-level="4.1"><span class="secno">
717717
Invoke <code>removeProperty()</code>
718718
on the <a data-autolink="link" href="#associated-style-declaration">associated style declaration</a>
719719
by passing <var>varName</var> as its argument.
720-
Return its returned value.
720+
If the returned value is the empty string,
721+
return <code>false</code>;
722+
otherwise, return <code>true</code>.
721723
</dd></dl>
722724

723725
<div class="example">

css-variables/Overview.src.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ <h3 id='the-CSSVariablesMap-interface'>
635635
DOMString get(DOMString varName);
636636
boolean has(DOMString varName);
637637
void set(DOMString varName, DOMString varValue);
638-
DOMString delete(DOMString varName);
638+
boolean delete(DOMString varName);
639639
}
640640
</pre>
641641

@@ -679,7 +679,9 @@ <h4 id='cssvariablesmap-methods'>
679679
Invoke <code>removeProperty()</code>
680680
on the <a>associated style declaration</a>
681681
by passing <var>varName</var> as its argument.
682-
Return its returned value.
682+
If the returned value is the empty string,
683+
return <code>false</code>;
684+
otherwise, return <code>true</code>.
683685
</dl>
684686

685687
<div class='example'>

0 commit comments

Comments
 (0)