Closed Bug 332490 Opened 15 years ago Closed 4 years ago
CSSStyle Sheet::Insert Rule shouldn't spam Error Console
Severity: normal → minor
Status: NEW → ASSIGNED
Priority: -- → P5
Target Milestone: --- → Future
This probably requires implementing error-reporting suppression. I'm not even sure if that's a good idea, since I think only a subset of errors would actually trigger the code that causes an exception; some errors are just handled according to the CSS error-handling rules, and some errors like having multiple rules in the string would just be handled as well.
Assignee: dbaron → nobody
Status: ASSIGNED → NEW
QA Contact: ian → style-system
I just checked attached test-case out of curiosity and there were no error messages in the console. So, it might be considered as already fixed. Am I wrong?
There is still a CSS warning: "Dangling combinator. Ruleset ignored due to bad selector." Console evolved and allows filtering out CSS messages by now, maybe that happened in your case. But more importantly, there is document.querySelector() API which will no longer produce any messages beyond the exception - so silent validation of CSS selectors is no longer an issue.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.