Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Supporting Universal selector in basic selectors #26

merged 1 commit into from

2 participants

theluk Tijs Verkoyen
#myid * 
#myid > *

both should match

implemented only in the basic selectors.

Tijs Verkoyen tijsverkoyen merged commit 7c9673f into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 6, 2013
  1. theluk
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 CssToInlineStyles.php
4 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
// E + F, Matches any F element immediately preceded by an element
Something went wrong with that request. Please try again.