[Resolved] IE 11 issue with backtick character in injected CSS
This thread is resolved. Here is a description of the problem and solution.
Problem: If I include CSS in a View or Content Template, an error is displayed in the console of IE 11 related to an invalid backtick character in the following code:
Solution: This issue will be fixed permanently in a future release of this plugin. Until that time, add the CSS in the Customizer's Additional CSS editor and scope the code using CSS selectors.
This support ticket is created 4 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Pagination is causing a JavaScript error in IE. If I am using AJAX pagination in a View that also includes custom CSS in the Block editor, several JavaScript errors are shown in the browser on IE 11, including "Invalid character" and "Unable to get property 'split' of undefined or null reference".
As discussed, I'm escalating this to my 2nd tier support team for some additional investigation. In the meantime, I suggest moving your custom CSS code out of the View and into a separate stylesheet, or into Appearance > Customize > Additional CSS. That will help work around the backtick character issue.
It doesn't seem to have anything to do with pagination, by the way...any View with or without pagination that includes custom CSS will trigger the same issue, due to the method in which custom CSS is injected into the page. I'll follow up when I have some feedback from the 2nd tier team.
Another alternative is to scope your CSS using descendent selectors based on the corresponding View ID. For example instead of:
p {
color:#333;
}
...scope that to only apply to those tags within a specific View:
.js-wpv-layout-view-1234 p {
color:#333;
}
The issue has been escalated to our developers and and erratum has been posted: https://toolset.com/errata/adding-custom-css-to-templates-and-views-broken-in-ie11/
Feel free to close the forum ticket here and follow the erratum post by clicking "Subscribe to comments" to receive updates as we work to resolve the issue. Thanks again for the report.