Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Move check for name-from:content out of getTextFromDescendantContent and... #53

Merged
merged 1 commit into from
Sep 23, 2013

Conversation

alice
Copy link
Contributor

@alice alice commented Sep 23, 2013

... use getTextFromDescendantContent instead of getTextAlternatives in MainRoleOnInappropriateElement test

This was previously committed but got clobbered by a later commit.

Fixes bug reported here: https://groups.google.com/forum/#!category-topic/introduction-to-web-accessibility/ChGzBSe0_yU

…and use getTextFromDescendantContent instead of getTextAlternatives in MainRoleOnInappropriateElement test
@ghost ghost self-assigned this Sep 23, 2013
@@ -255,8 +255,17 @@ axs.properties.findTextAlternatives = function(node, textAlternatives, opt_recur

// 2C. Otherwise, if the attributes checked in rules A and B didn't provide results, text is
// collected from descendant content if the current element's role allows "Name From: contents."
Copy link

Choose a reason for hiding this comment

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

Nit: would it be more accurate to say: "text is collected from descendant content unless the current element's role does not allow "Name From: contents."?

(because if there's no role, text is collected from descendant content)

Is this doing the right thing for standard html elements too, or does that matter? there are other html elements where the name never comes from descendant content, like - is that handled already?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree it should be more selective about calculating name from contents for native HTML elements, however I'd rather make that a separate issue.

Could you possibly file a bug with a pointer to the relevant documentation? I had a quick look through the ARIA spec and couldn't find it.

Copy link

Choose a reason for hiding this comment

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

Sure, will do

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you!

@ghost
Copy link

ghost commented Sep 23, 2013

lgtm

alice pushed a commit that referenced this pull request Sep 23, 2013
Move check for name-from:content out of getTextFromDescendantContent and...
@alice alice merged commit 8246af1 into GoogleChrome:master Sep 23, 2013
@alice alice deleted the cherrypick branch September 23, 2013 18:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant