Closed Bug 158182 Opened 23 years ago Closed 22 years ago

|Range.extractContents()| causes error in JS Console, crash

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 186540

People

(Reporter: dario, Unassigned)

Details

Attachments

(1 file)

here is a simple code to repeat this: <html> <script> function dale() { a = document.createRange(); alert(a.extractContents()); } </script> <body id="dario" > asdada<EM>adas</EM><STRONG><EM>asda</EM>asdasda</STRONG> <input type="button" onclick="dale()"> <b>hola</b> </body> </html>
Confirmed: build 2002071708. No crash though, JavaScript Console says: Error: uncaught exception: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMRange.extractContents]" nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)" location: "JS frame :: file:///C:/!Tools/vncviewer/zzz.html :: dale :: line 6" data: no] SEE ALSO: bug 10547
Status: UNCONFIRMED → NEW
Ever confirmed: true
I'm not seeing the crash, either. But I do see the error in the JS Console. Reassigning to DOM Level 0 -
Assignee: rogerl → jst
Component: JavaScript Engine → DOM Level 0
QA Contact: pschwartau → desale
Summary: when you try to execute the method extractContents() ona Range object an error arises and mozilla is closed → |Range.extractContents()| causes error in JS Console, crash
Mass-reassigning bugs to dom_bugs@netscape.com
Assignee: jst → dom_bugs
Duping up to the bug which has more details. *** This bug has been marked as a duplicate of 186540 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Assignee: general → nobody
Status: RESOLVED → VERIFIED
OS: Windows 2000 → All
QA Contact: desale → general
Hardware: x86 → All
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: