Skip to content

Commit bd1a3aa

Browse files
Make classList doc mention full set of manipulation methods (#8539)
Fixes #8538
1 parent a01f7e8 commit bd1a3aa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

files/en-us/web/api/element/classlist/index.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ <h3 id="Returns">Returns</h3>
3131
it returns an empty <code>DOMTokenList</code>, i.e. a <code>DOMTokenList</code> with
3232
the <code>length</code> property equal to <code>0</code>.</p>
3333

34-
<p>The <code>DOMTokenList</code> itself is read-only, although you can modify it using the
35-
{{domxref("DOMTokenList/add", "add()")}} and {{domxref("DOMTokenList/remove",
36-
"remove()")}} methods.</p>
34+
<p>Although the <code>classList</code> property itself is read-only, you can modify its associated <code>DOMTokenList</code> using the {{domxref("DOMTokenList/add", "add()")}}, {{domxref("DOMTokenList/remove", "remove()")}}, {{domxref("DOMTokenList/replace", "replace()")}}, and {{domxref("DOMTokenList/toggle", "toggle()")}} methods.</p>
3735

3836
<h2 id="Examples">Examples</h2>
3937

0 commit comments

Comments
 (0)