Closed Bug 111133 Opened 23 years ago Closed 23 years ago

getPropertyValue("left") throws NS_ERROR_NOT_IMPLEMENTED for getComputedStyle()

Categories

(Core :: DOM: CSS Object Model, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 109523

People

(Reporter: marcus, Assigned: jst)

Details

Attachments

(1 file)

Loading the attached HTML-file, I get the following error in the Javascript Console: Error: uncaught exception: [Exception... "Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIDOMCSSStyleDeclaration.getPropertyValue]" nsresult: "0x80004001 (NS_ERROR_NOT_IMPLEMENTED)" location: "JS frame :: file:///home/marcus/homepage/tests/getPropertyValue.html :: testPropertyValue :: line 15" data: no] This is with a CVS-build from Nov 20, 2001. The page should display the left-Property of the link "Book Reviews". Instead, the value is not displayed, and the specified exception occurs.
Attached file Testcase
Testcase that shows the describe behavior
You're asking for a nonsensical property ("left" is not defined on statically positioned elements). The CSS DOM spec does not say what should happen here and the standards people are still bickering about it. So yes, this property is not implemented for statically positioned elements and likely will not be until there is some consensus on what it should do. It works fine for positioned elements (for which it actually makes sense). Duplicate of "Implement getComputedStyle for non-computed values" *** This bug has been marked as a duplicate of 109523 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: