Hi, We created a sample DHTML code using javascript. It works fine in IE, Mozilla and firefox. But we are getting DOMException4 in Safari 2.0.3. Sample Code: function PaintCanvasDom() { var x = document.createRange(); x.setStartBefore(this); // Throwing error as DOM Exception // Some more code snippets } When we try to access the range, it throws DOM Exception in setStartBefore function. It shows DOM Exception 4 instead of a description for that exception.
Poster, Please attach a test case that shows the bug. Doing so will make it much easier to confirm and then fix what ever might be causing this. If you are not able to post a test case, simply testing it in the nightly would also help.
I tried, and couldn't create a test case from the description. Closing as INVALID because of lack of information to proceed. Please re-open if you can provide steps to reproduce the issue, such as a full test case. DOM exception 4 is WRONG_DOCUMENT_ERR.
I'm getting this bug with the following test case: http://pastie.org/259289 Error: WRONG_DOCUMENT_ERR: DOM Exception 4 (line 59)
This is probably a different issue - this test case does not involve setStartBefore, for example. Would you be willing to file a new bug for this? That would help to reduce possible confusion.
@Alexey: Done: https://bugs.webkit.org/show_bug.cgi?id=20506 I just posted here, because it was one of the first results on teh gügle [-: