I'm trying to get all children of a YUI3 Element like this
Y.one(document.body).children
// results in undefined
But I see a children attribute here: https://clarle.github.io/yui3/yui/docs/api/classes/Node.html#attr_children
I'm trying to get all children of a YUI3 Element like this
Y.one(document.body).children
// results in undefined
But I see a children attribute here: https://clarle.github.io/yui3/yui/docs/api/classes/Node.html#attr_children
To get YUI attributes, you need to call the
#getmethod for that attribute:Runnable example: