Bug 106806 - [testcase] Dynamic changes to style not reflected in style attribute, only cssText
Summary: [testcase] Dynamic changes to style not reflected in style attribute, only cs...
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: 3.4
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-04 23:35 UTC by kirun
Modified: 2011-01-07 00:16 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Minimal testcase (488 bytes, text/html)
2005-06-04 23:38 UTC, kirun
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kirun 2005-06-04 23:35:37 UTC
Version:            (using KDE KDE 3.4.0)
Installed from:    SuSE RPMs
OS:                Linux

If an element's style is updated via the DOM, then its style attribute is queried, the original value of the attribute is returned. The expected return is the current state of the attribute, with changes.

A workaround is to use .style.cssText instead.
Comment 1 kirun 2005-06-04 23:38:16 UTC
Created attachment 11328 [details]
Minimal testcase

Expected results: the text font-weight: bold; is displayed
Actual results: no text displayed (style attribute is not changed when bold
style is added)
Comment 2 lexual 2005-07-12 01:36:42 UTC
confirming for 3.4.1
Comment 3 FiNeX 2008-04-06 23:56:35 UTC
Actually konqueror 4.0.3 display a "null" bold string. Is this the right behavior wanted for konqueror?
Comment 4 FiNeX 2008-05-06 10:16:14 UTC
The same happens on 3.5.9. Is it right?
Comment 5 Samuel Brack 2011-01-07 00:16:27 UTC
Seems to be fixed in 4.5.4, closing this report.