Looks like XMLNodes on Firefox are instances of Element but not on webkit
(which is the correct behavior).
You should not use Mootools methods with XMLNodes, they're intended to be
used on HTMLNodes.
You can easily used the .nodeValue property instead of .get('text').
Try it out and tell us what happens.-- Fábio Miranda Costa Solucione Sistemas Engenheiro de interfaces Twitter: fabiomiranda http://solucione.info On Tue, Jul 20, 2010 at 3:58 PM, brook <[email protected]> wrote: > Hi guys. I am trying to parse an XML file with SLICK. > > What is the proper way to get node values? > > So for a dumb xml file that looked like: > > <xmlfile> > <child> > <value>1</value> > <value1>a</value1> > </child> > ... > </xmlfile> > > i tried > > Slick.search(xml,"child > value").each(function(node){ > console.log(node,node.get("text")) > }) > > this gave me the correct node (<value>1</value>) but node.get("text") > worked in firefox but not safari or chorme. > > here is an example. note that node.get("text") only works in firefox. > > http://stickandlogdesigns.com/mootools/testing/tester2.html#iamahash >
