Closed Bug 53448 Opened 26 years ago Closed 25 years ago

GetSelectorText is always returning null

Categories

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

defect

Tracking

()

VERIFIED FIXED
Future

People

(Reporter: attinasi, Assigned: attinasi)

References

Details

Attachments

(1 file)

As a fix to bug 51944, the mSelectorText data member of nsCSSSelector was removed. As a result, GetSelectorText was temporarily reimplemented to return null. It should create a new selector and return that. Any clients of GetSelectorText are now broekn, so this should be addressed soon.
The XMLterm component was using GetSelectorText through JS DOM and it used to work correctly for changing styles interactively. See http://lxr.mozilla.org/seamonkey/source/extensions/xmlterm/ui/content/XMLTermCommands.js#307 Because of the fix to bug 51944, this feature is broken.It would be nice to be able to access the selectorText property correctly through DOM as soon as possible.
Accepting and setting milestone, but this will nto get fixed for RTM
Status: NEW → ASSIGNED
Target Milestone: --- → M20
Setting milestone now to Future: this will be dealt with after RTM. If this needs to get in for RTM please make the case for it and nominate RTM in the keyword field.
Target Milestone: M20 → Future
At the moment I'm using an ugly workaround where I read all the CSS rules as plain text, parse out the rule names myself, and use it to index the cssRules DOM array. It works, but it is fragile and far from elegant. So the fix can wait until after RTM, but will hopefully happen soon thereafter.
Was this fixed when Hewitt fixed bug 52381? Seems like it should have been...
Hewitt fixed bug 52381, I retested this with his fix and it works. The console shows selectorText = 'span.test' (correct value is 'SPAN.test') when the testcase is opened in Viewer. Marking FIXED - thanks to Hewitt!
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Netscape's standard compliance QA team reorganised itself once again, so taking remaining non-tables style bugs. Sorry about the spam. I tried to get this done directly at the database level, but apparently that is "not easy because of the shadow db", "plus it screws up the audit trail", so no can do...
QA Contact: chrisd → ian
*** Bug 62611 has been marked as a duplicate of this bug. ***
v
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: