Permalink
Browse files

Supporting Universal selector in basic selectors

  • Loading branch information...
1 parent e53f25f commit 019a89b80aa4976c691b1debc9147aadeb9b76a7 @theluk theluk committed Mar 6, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 CssToInlineStyles.php
@@ -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 019a89b

Please sign in to comment.