This was the ONLY way FireFox would process the line, so, yes there is every reason to reference them as an array item. No other way (apart from using the numeric array element) works.
As for invalid code. It's not invalid, it's just not compliant to some arbitrary "standard", it's perfectly...