Permalink
Browse files

Fix attribute filter to better meet HTML spec.

  • Loading branch information...
1 parent 4de3e0d commit 339d7ae9ad1989eea255ba4193757e38b1135bb7 Wei Dai committed Jul 3, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/jsdom/level1/core.js
View
@@ -1106,7 +1106,7 @@ core.Document.prototype = {
/* returns Attr */
createAttribute: function(/* string */ name) {
- if (!name || !name.length || name.match(/[^\w:\d_-]+/) ) {
+ if (!name || !name.length || name.match(/[^\w:\d_\.-]+/) ) {
throw new core.DOMException(INVALID_CHARACTER_ERR);
}
return new core.Attr(this, name,false);

0 comments on commit 339d7ae

Please sign in to comment.