BUGFIX: exception validating 'data-' attributes

This commit is contained in:
Jason Taylor 2014-07-14 17:43:38 -07:00
parent cea5350a3c
commit df2c259836
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ function validateAttribute(tagName, attribName, value) {
// data-* attributes
if (tag) {
var allowed = tag[attribName] || tag['data-*'];
if (allowed === value || allowed.indexOf('*') !== -1) { return value; }
if (allowed && (allowed === value || allowed.indexOf('*') !== -1)) { return value; }
}
}