Closed Bug 75724 Opened 23 years ago Closed 23 years ago

duplicate data in stylesheets associated to XHTML documents !

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
major

Tracking

()

RESOLVED FIXED
mozilla0.9

People

(Reporter: glazou, Assigned: pierre)

Details

Attachments

(2 files)

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. ***
Checked in.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla0.9
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: