Skip to content

Commit 3083ac0

Browse files
committed
add support for pseudo elements
needs tests see fb55#13
1 parent 642079e commit 3083ac0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

index.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,11 @@ function parseSelector(subselects, selector, options){
172172
});
173173

174174
} else if(firstChar === ":"){
175-
//if(selector.charAt(1) === ":"){} //TODO pseudo-element
175+
if(selector.charAt(1) === ":"){
176+
selector = selector.substr(2);
177+
tokens.push({type: "pseudo-element", name: getName().toLowerCase()});
178+
continue;
179+
}
176180

177181
selector = selector.substr(1);
178182

0 commit comments

Comments
 (0)