Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aria attributes are sanitized out #12

Closed
cferdinandi opened this issue Dec 5, 2018 · 1 comment
Closed

Aria attributes are sanitized out #12

cferdinandi opened this issue Dec 5, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@cferdinandi
Copy link
Owner

Allow exception:

/**
 * Check if setAttribute() should be used for this attribute
 * @param  {String} att The attribute type
 * @return {Boolean}    Returns true if setAttribute() should be used
 */
var useSetAttribute = function (att) {
	return ['data-', 'aria-'].indexOf(att.slice(0, 5)) > -1 || attributeExceptions.indexOf(att) > -1;
};
@cferdinandi cferdinandi added the bug Something isn't working label Dec 5, 2018
@cferdinandi
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant