-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include all configuration in the <style /> element
This fixes a bug in the prefixIds plugin. It assumed that the <style /> element will have a single text fragment underneath. So this works: <style> <!-- Leading comment ignored --> .class1 {} ... .classN {} </style> The above parses so that node.children[0] is a "text" node with all the CSS classes where "node" is the style element. And this fails: <style> <!-- Ignored comment --> .class1 {} <!-- comment --> .class2 {} </style> This fails because only node.children[0] is processed and node.children looks something like: [ .class1 (type = "text") comment (type = "comment") .class2 (type = "text") ]
- Loading branch information
1 parent
2d9e101
commit 6c3eb09
Showing
2 changed files
with
58 additions
and
51 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.