Raynes / laser

HTML transformation/templating for people who do that sort of thing and stuff
120 stars 16 forks source link

Transforms can't return multiple nodes at the top level of a top-level node in a fragment #1

Closed Raynes closed 11 years ago

Raynes commented 11 years ago

This wouldn't make sense in a document because there is only one top-level node. In a fragment, we can't insert to the left like we do in this situation if the node is top-level. We need logic to just return the nodes and merge them into the rest of the fragment's top-level nodes.