Closed
Bug 82258
Opened 23 years ago
Closed 23 years ago
left and top attributes for DOM-based DHTML content do not work when page is rendered in non-quirks mode
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: megabyte, Assigned: jst)
References
()
Details
Attachments
(2 files)
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9+) Gecko/20010522
DHTML based on the DOM shows up in the wrong place when a page is rendered in
non-quirks mode
Reproducible: Always
Steps to Reproduce:
See URL.
Actual Results: DHTML content shows up at the origin.
Expected Results: DHTML content should show up in the bottom-right-hand corner.
DHTML content shows up correctly if rendered in quirks mode. To avoid
confusion, I should note that there is JavaScript code present to handle
Mozilla, Netscape 4, and IE.
Comment 1•23 years ago
|
||
Could you attach a simple testcase or at least explain clearly what the content
is that's in the wrong place?
Reporter | ||
Comment 2•23 years ago
|
||
Reporter | ||
Comment 3•23 years ago
|
||
Reporter | ||
Comment 4•23 years ago
|
||
Testcases will ONLY work in Mozilla, all other code removed. Added some
debugging tags in, narrowing down problem to lack of 'left' and 'top'
attributes in standards mode.
Reporter | ||
Updated•23 years ago
|
Summary: DOM-based DHTML content shows up in the wrong place when page is rendered in non-quirks mode → left and top attributes for DOM-based DHTML content do not work when page is rendered in non-quirks mode
Comment 5•23 years ago
|
||
INVALID.
You are setting obj.left and obj.right to exact numbers, without units.
Therefore, it is invalid CSS, and therefore in standard mode we are ignoring
them as per the spec. In Quirks mode we allow unitless numbers (and assume that
the author forgot to add "px" units).
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•