first approach to wlxml library
[fnpeditor.git] / src / smartxml / smartxml.js
index 9862fab..96fcdfe 100644 (file)
@@ -71,6 +71,14 @@ $.extend(ElementNode.prototype, DocumentNode.prototype, {
         this._$.attr(name, value);
     },
 
         this._$.attr(name, value);
     },
 
+    getAttrs: function() {
+        var toret = [];
+        for(var i = 0; i < this.nativeNode.attributes.length; i++) {
+            toret.push(this.nativeNode.attributes[i]);
+        }
+        return toret;
+    },
+
     append: function(documentNode) {
         this._$.append(documentNode.nativeNode);
     },
     append: function(documentNode) {
         this._$.append(documentNode.nativeNode);
     },