fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests refactoring
[fnpeditor.git]
/
src
/
smartxml
/
smartxml.js
diff --git
a/src/smartxml/smartxml.js
b/src/smartxml/smartxml.js
index
9862fab
..
96fcdfe
100644
(file)
--- a/
src/smartxml/smartxml.js
+++ b/
src/smartxml/smartxml.js
@@
-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);
},