Skip to content

Commit

Permalink
include htmlelement type selectors in output
Browse files Browse the repository at this point in the history
  • Loading branch information
aharui committed Mar 27, 2018
1 parent efeeffa commit 6b56762
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,14 @@ protected boolean keepRule(ICSSRule newRule)
if (!sp.contains("defaults.css"))
return true;

// might need to loop over all selectors in selector group
if (newRule.getSelectorGroup().size() > 0)
{
String elementName = newRule.getSelectorGroup().get(0).getElementName();
if (elementName != null)
if (htmlElementNames.contains(elementName))
return true;
}
return false;
}

Expand Down

0 comments on commit 6b56762

Please sign in to comment.