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: check if property exists in cache of flattenedTree #1536

Merged
merged 1 commit into from
May 9, 2019

Conversation

jeeyyy
Copy link
Contributor

@jeeyyy jeeyyy commented May 2, 2019

During a pairing session, noticed a bug with checking if a property already exists in the _vNodeCache of flattenedTree.

Previously because of this line https://github.com/dequelabs/axe-core/pull/1536/files#diff-a4aba2b3f5c65ff940eb4c8060dc57dfL37, if isFocusable is false, the utility function will be called. We should check if a cached value exists, rather than check against true or false, given that the values of some of these cached functions are boolean.

Closes issue: NA.

Reviewer checks

Required fields, to be filled out by PR reviewer(s)

  • Follows the commit message policy, appropriate for next version
  • Has documentation updated, a DU ticket, or requires no documentation change
  • Includes new tests, or was unnecessary
  • Code is reviewed for security by: @WilcoFiers

@WilcoFiers
Copy link
Contributor

What's the bug? Please explain.

@jeeyyy jeeyyy requested review from WilcoFiers and straker May 9, 2019 00:41
@jeeyyy jeeyyy merged commit 51c2e19 into develop May 9, 2019
@jeeyyy jeeyyy deleted the fix-prop-check branch May 9, 2019 15:22
stephenmathieson added a commit to mohanraj-r/axe-core that referenced this pull request May 10, 2019
* develop:
  feat(reporter): adds the rawEnv reporter which wraps raw and env data (dequelabs#1556)
  chore(i18n): Update Japanese locale (dequelabs#1549)
  fix(utils): make cache global instead of only setup in axe.run (dequelabs#1535)
  fix(aria-required-attr): don't require aria-valuemin/max (dequelabs#1529)
  docs: fixed small errors (dequelabs#1545)
  fix: check if property exists in cache of flattenedTree (dequelabs#1536)
  chore: update standard-version dep (dequelabs#1555)
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

2 participants