fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wlxml: linting
[fnpeditor.git]
/
src
/
smartxml
/
smartxml.js
diff --git
a/src/smartxml/smartxml.js
b/src/smartxml/smartxml.js
index
e484070
..
05583c5
100644
(file)
--- a/
src/smartxml/smartxml.js
+++ b/
src/smartxml/smartxml.js
@@
-91,13
+91,12
@@
$.extend(DocumentNode.prototype, {
}),
wrapWith: function(node) {
}),
wrapWith: function(node) {
- node = node instanceof ElementNode ? node : this.document.createElementNode(node);
-
+ var insertion = this.getNodeInsertion(node);
if(this.parent()) {
if(this.parent()) {
- this.before(
n
ode);
+ this.before(
insertion.ofN
ode);
}
}
-
n
ode.append(this);
- return
n
ode;
+
insertion.ofN
ode.append(this);
+ return
insertion.ofN
ode;
},
/**
},
/**