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

fix(rule): allow empty aria-labelledby values #829

Merged
merged 1 commit into from Apr 11, 2018

Conversation

marcysutton
Copy link
Contributor

@marcysutton marcysutton commented Apr 5, 2018

This change allows empty aria-labelledby attributes in the valid-attr-value rule.

Closes #372

Copy link
Contributor

@dylanb dylanb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nit pick that I'll leave to your discretion

@@ -84,6 +84,10 @@ aria.validateAttrValue = function (node, attr) {
return !!(value && doc.getElementById(value));

case 'idrefs':
// exempt attributes that allow empty strings
if ((attrInfo.values && attrInfo.values.indexOf('') !== -1) && value.trim().length === 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit pick: attrInfo.values.includes

@WilcoFiers WilcoFiers merged commit d280c5f into develop Apr 11, 2018
@WilcoFiers WilcoFiers deleted the empty-aria-labelledby branch April 11, 2018 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants