Bugzilla – Bug 20494
Text should have the features of ChildNode
Last modified: 2012-12-22 09:35:26 UTC
Element implements ChildNode;
Text should also implement ChildNode;
There's no reason you shouldn't be able to do nextElementSibling from a Text node, or do .before(...) on a Text node.
In truth, we should probably have this for every node type. For example nextElementSibling should work on Comment nodes too.
That's why CharacterData implements this interface too.