I discovered this bug writing CSS tests for the W3C CSS WG. If an XHTML document contains two <style> elements, the first one containing two rules a and b, and the second one a rule c, Mozilla will in fact internally keep a first stylesheet made of a and b, and a second one made of a b and c !!!!! Demo with the test case attached in the viewer, select Dump Stylesheet in Debug menu. If you don't trust the viewer, switch to a windows box with Document Inspector compiled (/mozilla/extensions/inspector) : same result.
We're not resetting mStyleText in the nsXMLContentSink. Attaching a patch.
r=glazman :-) Tested on windows for the test case
sr=attinasi if you need it.
*** Bug 75234 has been marked as a duplicate of this bug. ***
Status: NEW → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla0.9
You need to log in before you can comment on or make changes to this bug.