Closed
Bug 35605
Opened 25 years ago
Closed 25 years ago
Reference to offsetParent from HTML node causes segfault
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
VERIFIED
FIXED
People
(Reporter: matchen, Assigned: jst)
Details
(Keywords: crash, testcase)
Attachments
(1 file)
282 bytes,
text/html
|
Details |
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT)
BuildID: 2000022820
From JavaScript, if I access certain HTML DOM nodes and try to access the
offsetParent property, Mozilla segfaults. This seems to happen for <HTML>,
<HEAD>, and <TITLE> nodes...so far.
Reproducible: Always
Steps to Reproduce:
Load the following:
<html>
<head>
<title></title>
<script type="text/javascript">
function go()
{
var node = document.documentElement;
alert(node.offsetParent);
}
</script>
</head>
<body onload="go();">
<h1>Hello, world!</h1>
</body>
</html>
Actual Results: Mozilla goes away and I get an exception popup.
Expected Results: Mozilla shouldn't go away and give me an exception screen.
Comment 1•25 years ago
|
||
Confirming bug. Successfully reproduced on PC/Linux
with build 2000-04-10-08. Adding crash keyword.
Comment 2•25 years ago
|
||
Assignee | ||
Comment 3•25 years ago
|
||
I just checked in a fix for this, marking FIXED.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Comment 4•25 years ago
|
||
Verified with 2000-02-22-08.
Comment 6•16 years ago
|
||
Plenty of tests covering offsetParent, no need to add this testcase.
Flags: in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•