mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 16:18:42 -05:00
BUGFIX: exception validating 'data-' attributes
This commit is contained in:
parent
cea5350a3c
commit
df2c259836
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ function validateAttribute(tagName, attribName, value) {
|
||||||
// data-* attributes
|
// data-* attributes
|
||||||
if (tag) {
|
if (tag) {
|
||||||
var allowed = tag[attribName] || tag['data-*'];
|
var allowed = tag[attribName] || tag['data-*'];
|
||||||
if (allowed === value || allowed.indexOf('*') !== -1) { return value; }
|
if (allowed && (allowed === value || allowed.indexOf('*') !== -1)) { return value; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue