mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-26 06:41:22 -04:00
Merge pull request #2540 from codetaylor/master
BUGFIX: exception validating 'data-' attributes
This commit is contained in:
commit
09924da60b
1 changed files with 1 additions and 1 deletions
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue