Bug 10029 - HTML DOM Exception in WebKit
Summary: HTML DOM Exception in WebKit
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 417.x
Hardware: PC OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-20 05:10 PDT by pragalathar
Modified: 2008-08-25 00:25 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pragalathar 2006-07-20 05:10:43 PDT
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.
Comment 1 Sam Weinig 2006-07-20 13:10:44 PDT
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. 
Comment 2 Alexey Proskuryakov 2006-09-03 07:57:49 PDT
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.
Comment 3 elliottcable 2008-08-24 23:44:13 PDT
I'm getting this bug with the following test case:

http://pastie.org/259289

Error: WRONG_DOCUMENT_ERR: DOM Exception 4 (line 59)
Comment 4 Alexey Proskuryakov 2008-08-24 23:53:33 PDT
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.
Comment 5 elliottcable 2008-08-25 00:25:24 PDT
@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 [-: