Luke Smith![]()
node.get('childNodes') returns a mix of text nodes and elements, while node.get('children') will get just elements. This fills in the left over gap of targeting just the text node children.
var textNodes = Y.one('#container').get('textNodes');
Get mah text nodes, yo!
I know, not a terribly useful example. Sorry :(
<script src="http://yui.yahooapis.com/3.4.0 PR2/build/yui/yui-min.js"></script>YUI({
//Last Gallery Build of this module
gallery: 'gallery-2011.07.20-20-59'
}).use('gallery-textnodes', function(Y) {
var textNodes = Y.one('#container').get('textNodes');
});
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info