Closed Bug 315648 Opened 20 years ago Closed 20 years ago

nsCSSSelector::ToStringInternal sometimes fails to serialize "*" when needed

Categories

(Core :: CSS Parsing and Computation, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: dbaron, Assigned: dbaron)

Details

(Whiteboard: [patch])

Attachments

(3 files)

As I pointed out in an "XXXldb" comment in the patch on bug 315567, nsCSSSelector::ToStringInternal sometimes doesn't serialize the "*" for the element even when a namespace is present. It should remember that a namespace was serialized and be sure to serialize the "*".
Attached patch patch (diff -u)Splinter Review
I tested that this gives minimal output for attachment 202342 [details], attachment 202342 [details] modified to add a default namespace the same as html, and attachment 202342 [details] modified to add a default namespace different from html.
Attached patch patch (diff -ub)Splinter Review
Attachment #202350 - Flags: superreview?(bzbarsky)
Attachment #202350 - Flags: review?(bzbarsky)
Status: NEW → ASSIGNED
Priority: -- → P2
Whiteboard: [patch]
Target Milestone: --- → mozilla1.9alpha
I'll try to get to this in the next day or two... Sorry this is taking so long. :(
Comment on attachment 202350 [details] [diff] [review] patch (diff -ub) r+sr=bzbarsky
Attachment #202350 - Flags: superreview?(bzbarsky)
Attachment #202350 - Flags: superreview+
Attachment #202350 - Flags: review?(bzbarsky)
Attachment #202350 - Flags: review+
Fix checked in to trunk.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: