Closed
Bug 459686
Opened 18 years ago
Closed 18 years ago
can't read style value from style tag or css file using javascript
Categories
(Core :: DOM: CSS Object Model, defect)
Tracking
()
People
(Reporter: netdur, Unassigned)
References
()
Details
Attachments
(2 files)
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092515 Ubuntu/8.10 (intrepid) Firefox/3.0.3
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092515 Ubuntu/8.10 (intrepid) Firefox/3.0.3
I have max-width on separate css file, I tries to read it using element.style.maxWidth, it returns nothing, if I sat it as style="max-width:100px" the value could be read just fine
see pastebin for demo and workaround
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Actual Results:
- 100px - 100px
Expected Results:
100px - 100px - 100px
Comment 1•18 years ago
|
||
Please attach code to the bug in the future. Mozilla's pastbin is set to delete items after a day by default. Your code would have disappeared.
Component: General → DOM: CSS Object Model
Product: Firefox → Core
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•