get/set attr
[fnpeditor.git] / src / smartxml / smartxml.js
index b7fc3f1..04449cf 100644 (file)
@@ -62,6 +62,14 @@ $.extend(ElementNode.prototype, DocumentNode.prototype, {
         return new ElementNode(this._$.parent());
     },
 
+    getAttr: function(name) {
+        return this._$.attr(name);
+    },
+
+    setAttr: function(name, value) {
+        this._$.attr(name, value);
+    },
+
     append: function(documentNode) {
         this._$.append(documentNode.nativeNode);
     },