Skip to content

Commit

Permalink
add comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Orvell committed Jun 28, 2016
1 parent 4e51ef6 commit e770343
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/style-transformer.html
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,11 @@
} else {
return hostScope + paren;
}
// if no paren, do a straight :host replacement.
// TODO(sorvell): this should not strictly be necessary but
// it's needed to maintain support for `:host[foo]` type selectors
// which have been improperly used under Shady DOM. This should be
// deprecated.
} else {
return selector.replace(HOST, hostScope);
}
Expand Down

0 comments on commit e770343

Please sign in to comment.