jcfiala: (Default)
[personal profile] jcfiala
When you're working with those nodeLists that are returned by 'getElementsByName' and the like, although they look like arrays they don't always act like them - for... in... doesn't work with them. Although they loop the correct number of times, the variable that's supposed to be populated with the current item is instead unknown.

And does anyone know why, although the name of element 'item' is 'item.name' and the id is 'item.id', that the class of that element is 'item.className'? That one always bites my ass.
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

October 2020

S M T W T F S
    123
45678910
11121314151617
18192021222324
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 10th, 2026 05:17 am
Powered by Dreamwidth Studios