Skip to content

Commit 56ed462

Browse files
committed
[cssom-1] Clarify what happens if CSSStyleDeclaration.item(n) is out of bounds, like all the other item methods. #12532
1 parent 037dbfa commit 56ed462

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
@@ -2482,7 +2482,7 @@ The <dfn attribute for=CSSStyleDeclaration>length</dfn> attribute must return th
24822482
declarations</a> in the <a for="CSSStyleDeclaration">declarations</a>.
24832483

24842484
The <dfn method for=CSSStyleDeclaration>item(<var>index</var>)</dfn> method must return the
2485-
<a for="CSS declaration">property name</a> of the <a>CSS declaration</a> at position <var>index</var>.
2485+
<a for="CSS declaration">property name</a> of the <a>CSS declaration</a> at position <var>index</var>. If there is no <var>index</var>th object in the collection, then the method must return the empty string.
24862486

24872487
The <dfn method for=CSSStyleDeclaration>getPropertyValue(<var>property</var>)</dfn> method must run these steps:
24882488
<ol>

0 commit comments

Comments
 (0)