Skip to content

Commit 7e529e8

Browse files
authored
Parse :host selector (#105)
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
1 parent aab832f commit 7e529e8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

style/servo/selector_parser.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,10 @@ impl<'a, 'i> ::selectors::Parser<'i> for SelectorParser<'a> {
708708
fn namespace_for_prefix(&self, prefix: &Prefix) -> Option<Namespace> {
709709
self.namespaces.prefixes.get(prefix).cloned()
710710
}
711+
712+
fn parse_host(&self) -> bool {
713+
true
714+
}
711715
}
712716

713717
impl SelectorImpl {

0 commit comments

Comments
 (0)