-
-
Notifications
You must be signed in to change notification settings - Fork 901
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Narrowing conditions for which we defensively dup-unparent-and-root t…
…ext nodes in the expectation they may be merged. Closes #595. Note that this simply omits the case where we are inserting a previous text sibling, and our case was duping and unparenting the *next* text sibling. It's not totally clear to me, based on looking at the libxml2 code, that this is necessary if the pivot node is not a text node. That is, we may be being *too* defensive here. We should probably schedule some work to rethink all the kludges we have around node reparenting, because I'm pretty sure we can simplify (or decompose) `reparent_node_with` with a little thought.
- Loading branch information
1 parent
9a4421a
commit b0cd85f
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters