Permalink
Browse files

createDocument fix from the previous commit exposed a failing test ca…

…se caused by tagRegEx not matching the 'Name' production from the XML grammar. For now just change the regex to also match dot '.' since that is the minimum change to pass the test.
  • Loading branch information...
1 parent 63b3f11 commit ef647dd830f74de5eeb849c7a11f1aa11223a978 @djcsdy djcsdy committed Feb 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/jsdom/level1/core.js
View
@@ -1198,7 +1198,7 @@ core.Document = function Document(options) {
};
-var tagRegEx = /[^\w:\d_-]+/i;
+var tagRegEx = /[^\w:\d_\.-]+/i;
var entRegEx = /[^\w\d_\-&;]+/;
var invalidAttrRegEx = /[^\w:\d_\.-]+/;

0 comments on commit ef647dd

Please sign in to comment.