Comparing version 2.0.5 to 2.0.6
{ | ||
"name": "rquery", | ||
"main": "rquery.js", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"authors": [ | ||
@@ -6,0 +6,0 @@ "Andrew Hanna <percyhanna@gmail.com>" |
@@ -13,3 +13,3 @@ { | ||
], | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"repository": { | ||
@@ -16,0 +16,0 @@ "type": "git", |
@@ -131,3 +131,3 @@ (function (rquery) { | ||
{ | ||
matcher: /^\[([^\s~|^$*=]+)(?:([~|^$*]?=)"((?:\\"|.)*)")?\]/, | ||
matcher: /^\[([^\s~|^$*=]+)(?:([~|^$*]?=)"((?:\\"|.)*?)")?\]/, | ||
runStep: function (context, match) { | ||
@@ -134,0 +134,0 @@ context.filterScope(function (component) { |
@@ -226,2 +226,13 @@ describe('Selectors', function () { | ||
describe('chained attribute selectors', function () { | ||
before(function () { | ||
this.$r = run('div[id="my-component"][class~="my-class"]'); | ||
}); | ||
it('finds the correct component', function () { | ||
expect(this.$r).to.have.length(1); | ||
expect(this.$r[0]).to.have.prop('id', 'my-component'); | ||
}); | ||
}); | ||
describe('attribute selector with dash in name', function () { | ||
@@ -228,0 +239,0 @@ before(function () { |
46371
1087