fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
get/set attr
[fnpeditor.git]
/
src
/
smartxml
/
smartxml.js
diff --git
a/src/smartxml/smartxml.js
b/src/smartxml/smartxml.js
index
b7fc3f1
..
04449cf
100644
(file)
--- a/
src/smartxml/smartxml.js
+++ b/
src/smartxml/smartxml.js
@@
-62,6
+62,14
@@
$.extend(ElementNode.prototype, DocumentNode.prototype, {
return new ElementNode(this._$.parent());
},
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);
},
append: function(documentNode) {
this._$.append(documentNode.nativeNode);
},