Question about DOM2 Range

Dear all,

I have a question about DOM2 Range Object Model. Shouldn't be
> void surroundContents(in Node n);
declared as
> void surroundContents(in Node n) raises (RangeException); ?
Because:
>The surroundContents() method raises an exception if the range partially
selects a non-Text
> node. An example of a range for which surroundContents() raises an
exception is:
>         <FOO>AB<BAR>CD</BAR>E</FOO>
so it should be clear in the specification also.
Please let me know if I am wrong.
The quoted are all from CR-DOM-Level-2-19991210.

    Regards,
            Lajos

Received on Monday, 20 December 1999 00:23:53 UTC