-
-
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
aa5d667
commit 4e3007c
Showing
1 changed file
with
44 additions
and
42 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