Commit 1a83e69
committed
Fix HTMLCollection named property issues
1 - Named properties should not be enumerable
2 - Empty key should always result in a null/undefined (depending on the API)
even if there's an element with an empty id/name
To address the first issue, we now require PropertyAttributes to be specified
when setting an object's value.1 parent 210d4f6 commit 1a83e69
File tree
3 files changed
+25
-11
lines changed- src
- browser/dom
- runtime
3 files changed
+25
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
| 409 | + | |
410 | 410 | | |
411 | 411 | | |
412 | | - | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
413 | 419 | | |
414 | 420 | | |
415 | 421 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
894 | 894 | | |
895 | 895 | | |
896 | 896 | | |
897 | | - | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
898 | 904 | | |
899 | 905 | | |
900 | 906 | | |
901 | 907 | | |
902 | | - | |
| 908 | + | |
903 | 909 | | |
904 | 910 | | |
905 | | - | |
| 911 | + | |
906 | 912 | | |
907 | 913 | | |
908 | 914 | | |
909 | 915 | | |
910 | | - | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
911 | 919 | | |
912 | 920 | | |
913 | 921 | | |
| |||
957 | 965 | | |
958 | 966 | | |
959 | 967 | | |
960 | | - | |
961 | | - | |
| 968 | + | |
| 969 | + | |
962 | 970 | | |
963 | 971 | | |
964 | | - | |
965 | | - | |
| 972 | + | |
| 973 | + | |
966 | 974 | | |
967 | 975 | | |
968 | 976 | | |
| |||
0 commit comments