Closed Bug 814302 Opened 13 years ago Closed 13 years ago

don't print to the console when an invalid selector is passed to mozMatchesSelector, etc.

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla20

People

(Reporter: dbaron, Assigned: dbaron)

References

()

Details

Attachments

(2 files)

When mozMatchesSelector and friends are passed a syntactically-invalid selector, we print to the console due to an NS_ENSURE_SUCCESS. Since this happens quite a bit (e.g., jQuery animations passing ":hidden" quite frequently), it would be better if this weren't console-spam.
Comment on attachment 684303 [details] [diff] [review] Don't print to console when an invalid selector is passed to mozMatchesSelector. r=me
Attachment #684303 - Flags: review?(bzbarsky) → review+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
Comment on attachment 693260 [details] [diff] [review] , part 2: Don't print to console when an invalid selector is passed to querySelector*. r=me
Attachment #693260 - Flags: review?(bzbarsky) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: