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)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: vladimire, Assigned: jst)

References

Details

Attachments

(1 file)

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);
Attached file testcase
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
Ok. Verifying.
Status: RESOLVED → VERIFIED
*** Bug 244281 has been marked as a duplicate of this bug. ***
*** Bug 204235 has been marked as a duplicate of this bug. ***
*** Bug 74602 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.

Attachment

General

Created:
Updated:
Size: