private ElementRuleList extractDOMModifications(List<CSSStyleRule> ruleList) {
ElementRuleList modifierRules = new ElementRuleList();
Iterator<CSSStyleRule> it = ruleList.iterator();
while(it.hasNext()) {
CSSStyleRule rule = it.next();
PseudoClass pseudoModifier = getDOMModifier(rule.getSelectorText());
if(pseudoModifier!=null) {
ElementRule modifierRule = ElementRuleFactory.createElementRule(pseudoModifier, CSSUtil.asMap(rule.getStyle()));
modifierRules.add(modifierRule);
it.remove();
}
}