Permalink
Browse files

Merge pull request #26 from theluk/patch-1

Supporting Universal selector in basic selectors
  • Loading branch information...
2 parents e53f25f + 019a89b commit 7c9673fe35d02b187ba326e16ab67a93a14ea95c @tijsverkoyen committed Mar 13, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 CssToInlineStyles.php
View
@@ -95,9 +95,9 @@ private function buildXPathQuery($selector)
// the CSS selector
$cssSelector = array(
// E F, Matches any F element that is a descendant of an E element
- '/(\w)\s+(\w)/',
+ '/(\w)\s+([\w\*])/',
// E > F, Matches any F element that is a child of an element E
- '/(\w)\s*>\s*(\w)/',
+ '/(\w)\s*>\s*([\w\*])/',
// E:first-child, Matches element E when E is the first child of its parent
'/(\w):first-child/',
// E + F, Matches any F element immediately preceded by an element

0 comments on commit 7c9673f

Please sign in to comment.