Skip to content

Commit

Permalink
Fix #972 by upgrading nwmatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Jan 4, 2015
1 parent ae490dd commit b61a552
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -60,7 +60,7 @@
"cssom": ">= 0.3.0 < 0.4.0",
"cssstyle": ">= 0.2.21 < 0.3.0",
"htmlparser2": ">= 3.7.3 < 4.0.0",
"nwmatcher": ">= 1.3.3 < 2.0.0",
"nwmatcher": ">= 1.3.4 < 2.0.0",
"parse5": ">= 1.2.0 < 2.0.0",
"request": ">= 2.44.0 < 3.0.0",
"xmlhttprequest": ">= 1.6.0 < 2.0.0",
Expand Down
14 changes: 14 additions & 0 deletions test/jsdom/selectors.js
@@ -0,0 +1,14 @@
"use strict";

var jsdom = require("../..").jsdom;

// These tests are mostly random regression tests, not systematic parsing tests. They are compiled from the bug tracker.
exports["div:last-child > span[title] (GH-972)"] = function (t) {
var document = jsdom("<div><div><span title='title text'>text</span></div></div>");

t.doesNotThrow(function () {
document.firstChild.querySelector("div:last-child > span[title]");
});

t.done();
};
1 change: 1 addition & 0 deletions test/runner
Expand Up @@ -61,6 +61,7 @@ var files = [
"jsdom/utils.js",
"jsdom/namespaces.js",
"jsdom/xml.js",
"jsdom/selectors.js",

"jsonp/jsonp.js",
"browser/css.js",
Expand Down

0 comments on commit b61a552

Please sign in to comment.