[libxml] getAttribute would only work for the first attribute in a tag. Fix this
authorRobert Carr <racarr@gnome.org>
Sun, 2 Aug 2009 18:05:53 +0000 (14:05 -0400)
committerRobert Carr <racarr@gnome.org>
Mon, 3 Aug 2009 01:20:33 +0000 (21:20 -0400)
modules/libxml/xml.js

index 6ddbe78..b6cccb6 100644 (file)
@@ -16,6 +16,7 @@ xml._nodeProto.getAttribute = function(name){
     while (properties){
        if (properties.name == name)
            return properties.children.content;
+       properties = properties.next
     }
     return null;
 }