Re: Empty DocumentFragment when appended to DocumentType node throw DOMException or not ?

>If  Empty DocumentFragment Node is appended to DocumentType Node , Should
>parser throw the DOM Exception "NO_MODIFICATION_ALLOWED_ERR" ?

I'd be perfectly comfortable leaving that as a quality-of-implementation
issue.

You shouldn't have made the attempt, and for debuggability reasons it's
entirely appropriate for the implementation to tell you so. On the other
hand, the attempt happened to be harmless in this case, so it wouldn't be
inappropriate for it to ignore the request.

So I'd say pick either one and document your choice.

______________________________________
Joe Kesselman  / IBM Research

Received on Wednesday, 3 April 2002 11:52:08 UTC