It would be nice to allow site owners to selectively ignore (whitelist) certain CSS or JS warnings/errors.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | advagg_validator-2492481-10-ignore-rules.patch | 6.9 KB | mikeytown2 |
| #1 | js_after.png | 20.51 KB | emmonsaz |
| #1 | js_before.png | 25.28 KB | emmonsaz |
| #1 | css_after.png | 20.04 KB | emmonsaz |
| #1 | css_before.png | 58.59 KB | emmonsaz |
Comments
Comment #1
emmonsaz commentedSee attached for a suggested patch. Here are my settings.php entries:
I didn't add a config option via the Drupal admin UI but it would be fairly easy to implement if you wanted.
Comment #2
emmonsaz commentedComment #4
mikeytown2 commentedThis is a great idea! If you could re-roll the patch so it applies to the latest dev and use 2 spaces in place of tabs that would be nice https://www.drupal.org/coding-standards#indenting
The variables should be prefixed with advagg. The GUI can be a followup :)
Comment #5
emmonsaz commentedRe-rolled...
P.S. I also tweaked the JS error output to match the CSS output.
Comment #6
emmonsaz commentedComment #7
emmonsaz commentedHere are the new settings.php settings I used:
Comment #9
mikeytown2 commentedI'll take it from here and get a patch up.
Comment #10
mikeytown2 commentedComment #11
mikeytown2 commentedTest passes. I changed the variable name prefix to advagg_validator and made them be able to accept a string or an array; also defined a default value of an empty string.
Anything else to add?
Comment #12
emmonsaz commentedThanks, looks good! I'm still figuring out the Drupal patch process (obviously) :)
Comment #14
mikeytown2 commentedThanks for the work on this. Patch in #10 has been committed.
Comment #16
emmonsaz commented