|Subject:||Bug in insertBefore?|
Using the undef option in insertBefore does not seem to work. The doc states: $node->insertBefore( $newNode, $refNode ) insertBefore The method inserts $newNode before $refNode. If $refNode is unde- fined, the newNode will be set as the new first child of the parent node. This function differs from the DOM L2 specification, in the case, if the new node is not part of the document, the node will be imported first. With $refnode not set it appears the node is pasted after the last child of the parent (same behaviour as insertAfter) See the attached file for a short test case.
Message body not shown because it is not plain text.