From da6bb077bae1614af05e0071fbfbe6ddddf4c267 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Fri, 27 Sep 2013 11:31:18 +0200 Subject: [PATCH] get/set attr --- src/smartxml/smartxml.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/smartxml/smartxml.js b/src/smartxml/smartxml.js index b7fc3f1..04449cf 100644 --- a/src/smartxml/smartxml.js +++ b/src/smartxml/smartxml.js @@ -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); }, -- 2.20.1