soyjavi / QuoJS

Micro #JavaScript Library for Mobile Devices
MIT License
2.07k stars 236 forks source link

Don't work with xml? #48

Closed dgdavid closed 11 years ago

dgdavid commented 11 years ago

Hi,

When try get children of a xml element, only obtain an «TypeError: Array.prototype.slice called on null or undefined»

However, if I try with the a DOM element, it's working properly.

Thanks.

not_work_with_xml

miteyema commented 11 years ago

Indeed, I have encountered the same problem. I used the following workaround to iterate over the items:

$$(xml).find("key").each(function () {
// do whatever you want for each item
}
soyjavi commented 11 years ago

QuoJS has no control methods for XML objects