Query on DOM range methods

bhanukrushna rout <[email protected]>
Newsgroups gmane.comp.web.dom.general
Message-ID <[email protected]>
Hi,

I see some changes are being made to the range methods' specification in W3C DOM4. I am concerned about setStartBefore, setStartAfter, setEndBefore, setEndAfter methods since I am working on a bug on these methods.

The change I noticed :

1. In the previous version (DOM2), InvalidNodeTypeError exception was thrown when root container of the refNode was not an Attr, Document, or DocumentFragment
node which is now updated to be thrown when parent of the refNode is null (DOM4).

2. Again InvalidNodeTypeError exception was thrown when refNode was a Document, DocumentFragment,
Attr, Entity, or Notation node while in the current version there is nothing pointed out like the previous version on refNode.

Since, my changes are highly dependent on these specification changes, I just want to confirm if my understanding about the latest specification is correct before making any changes. Let me know if I need to focus on any other thing which I might have missed mentioning above and not part of current behaviour.

Thanks,

Bhanu
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.