Merge remote-tracking branch 'origin/master' into fixes

This commit is contained in:
Natalie Weizenbaum 2017-02-02 14:48:15 -08:00
commit e1c0c95f3a
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
## 1.0.0-alpha.10
* Elements without a namespace (such as `div`) are no longer unified with
elements with the empty namespace (such as `|div`). This unification didn't
match the results returned by `is-superselector()`, and was not guaranteed to
be valid.
## 1.0.0-alpha.9
* Support `&` within `@at-root`.

View File

@ -93,9 +93,9 @@ SimpleSelector unifyUniversalAndElement(
}
String namespace;
if (namespace1 == namespace2 || namespace2 == null || namespace2 == '*') {
if (namespace1 == namespace2 || namespace2 == '*') {
namespace = namespace1;
} else if (namespace1 == null || namespace1 == '*') {
} else if (namespace1 == '*') {
namespace = namespace2;
} else {
return null;