[seed] [libxml] getAttribute would only work for the first attribute in a tag. Fix this
- From: Robert Carr <racarr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [seed] [libxml] getAttribute would only work for the first attribute in a tag. Fix this
- Date: Mon, 3 Aug 2009 01:21:05 +0000 (UTC)
commit b2acd1899e80b0b7b0decb8b7d8d42607067f3b1
Author: Robert Carr <racarr gnome org>
Date: Sun Aug 2 14:05:53 2009 -0400
[libxml] getAttribute would only work for the first attribute in a tag. Fix this
modules/libxml/xml.js | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/modules/libxml/xml.js b/modules/libxml/xml.js
index 6ddbe78..b6cccb6 100644
--- a/modules/libxml/xml.js
+++ b/modules/libxml/xml.js
@@ -16,6 +16,7 @@ xml._nodeProto.getAttribute = function(name){
while (properties){
if (properties.name == name)
return properties.children.content;
+ properties = properties.next
}
return null;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]