Skip to content

Insert at position? #108

Answered by privateOmega
privateOmega asked this question in Q&A
Discussion options

You must be logged in to vote

I figured out a crude way, but not sure if it has any other repurcussions that I don't know of, but my method at present is as follows.

const root = XMLFragment.root();
root.node.insertBefore(otherFragment.node, root.node.firstChild);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@oozcitak
Comment options

Answer selected by oozcitak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants