Closed
Bug 170778
Opened 22 years ago
Closed 22 years ago
Accessing 'float' property from dom generates a javascript error
Categories
(Core :: DOM: CSS Object Model, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: vladimire, Assigned: jst)
References
Details
Attachments
(1 file)
263 bytes,
text/html
|
Details |
The following code generates a javascript error but should pop up an alert with the value of the float property - "right". <DIV id="test" style="float: right">Test</DIV> <SCRIPT> alert(document.getElementById("test").style.float); </SCRIPT> Error: missing name after . operator Source Code: alert(document.getElementById("test").style.float);
Reporter | ||
Comment 1•22 years ago
|
||
Comment 2•22 years ago
|
||
INVALID. float is a reserved keyword in many languages, and thus you must use .cssFloat and not .float.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
Comment 4•20 years ago
|
||
*** Bug 244281 has been marked as a duplicate of this bug. ***
Comment 5•20 years ago
|
||
*** Bug 204235 has been marked as a duplicate of this bug. ***
You need to log in
before you can comment on or make changes to this bug.
Description
•