-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Avoid exception with :last-of-type etc. (#875)
This simply broadens the range of exceptions thrown by `symfony/css-selector` (for unsupported selector expressions) which will be caught and discarded in non-debug mode. It does not make anything magically work which didn't previously; however, it does allow the rest of the CSS to achieve full functionality, with only the affected CSS rule and selector suffering. The tests and changes to the README clarify and correct-as-documented the current behavior for these edge cases, which could be improved upon in future. These are currently rarely-used CSS pseudo-classes; their level of support in mainstream browsers has only [recently reached 95% of audiences](https://caniuse.com/#search=last-of-type). Their level of support in email clients is likely to be drastically lower per se of some time to come, but may be something Emogrifier can help with moving forwards, as their use becomes more widespread... Closes #872. New issue #876 for follow-up.
- Loading branch information
Showing
4 changed files
with
136 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters