I love DOMAssistant's simplicity. I'm planning on bundling it with my currently in development open source project, but I need to figure out what I'm doing wrong in this simple use case.
Accessing the "special" properties or methods of the DOMAssistant object, like $( ... ).addEvent( ... ) or $( ... ).load( ... ) works as I would expect, but to access the standard properties and methods of the returned HTML Elements, I seem to have to specify the key on which to manipulate.
For example:
$("p").innerText = "Test"; // Does not work.
I would expect that to change all paragraphs' innerText property to "Test", but instead, I get the error that the object does not have the property "innerText", and to fix this I have to specify what index of the returned array to access..
.. like this:
$("p")[0].innerText = "Test"; // Works.
Can anyone give me any advice on where I'm going wrong?
Cheers.