Summary: | CSS background-color does not map to bgColor attribute | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | Mario Weilguni <mweilguni> |
Component: | khtml ecma | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED NOT A BUG | ||
Severity: | normal | CC: | browserbugs2 |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | Testcase for the report above |
Description
Mario Weilguni
2005-03-22 18:46:00 UTC
Created attachment 10278 [details]
Testcase for the report above
*** Bug 104384 has been marked as a duplicate of this bug. *** You can't set attributes from CSS. This is a case of mapped attributes. Confirmed on 4.0.3. Accessing the DOM CSS properties does not seem to work either. After you set the style via DOM, the value is reported correctly. Testcase: <html> <head> <title>TEST BGCOLOR</title> </head> <style type="text/css"> body { background-color: #0000ff; } </style> <body> <script type="text/javascript"> alert("body.bgColor=" + document.body.style.backgroundColor); document.body.style.backgroundColor = "#11ffff"; alert("body.bgColor=" + document.body.style.backgroundColor); </script> </body> </html> Re: comment #4: That testcase is clearly invalid. You're not specifying it as inline information with element, so there is absolutely no reason for .style to report it. This info can only be gotten with getComputedStyle. The initial testcase is asking for returning the computed value in a DOM property. That's pretty unreasonable, IMHO. (In reply to comment #3) > You can't set attributes from CSS. That's correct. Testcase is invalid as explained. Resolving as INVALID |