Commit 13a3c24
Reword HTMLCollection.namedItem replacement (#35635)
* Remove incorrect information about HTMLCollection
In JavaScript, all non-Symbol property key values (including index numbers) are converted to Strings, so there is no way for the language to differentiate between `collection[1]` and `collection["1"]`. That means that `namedItem` and computed property access cannot be equivalent since `namedItem` doesn't return elements by index while computed property access does.
* Update index.md
---------
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>1 parent 592bea2 commit 13a3c24
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
0 commit comments