Search code examples
javascriptcross-browserjsfiddle

document.getElements() support


How well supported is the document.getElements() function. Additionally, is there a javascript reference page that has detailed browser support information somewhere. I usually use the mozilla docs, but I was wondering if there is something better.

I actually can't find any documentation on document.getElements() but when I do things like:

document.getElements("div a");

It works great in chrome, ff, safari, ie8 and ie6-9 via IETester. I think IETester may use the same javascript engine for all browsers though (not sure about that).


Solution

  • There is no such thing as document.getElements... I'll bet your coding in Jsfiddle and don't realize that the mootools lib is included ;)

    Have a look: http://jsfiddle.net/Zevan/pRKzy/