Skip to content

Instantly share code, notes, and snippets.

@loginx
Created June 11, 2015 15:15
Show Gist options
  • Save loginx/f7f9d5bc26dcd50c8176 to your computer and use it in GitHub Desktop.
Save loginx/f7f9d5bc26dcd50c8176 to your computer and use it in GitHub Desktop.
Sample Changelog

2.7.1 - 2015-06-11

  • New stable release

2.7.1-rc1 - 2015-06-10

Bugfixes

  • Fix an issue where AX_ARIA_04 rule wouldn't be applied in certain contexts

2.7.1-rc0 - 2015-06-09

New features

  • Add optional support for loading ADT through an AMD module loader (requireJS)
  • Add support for providing a configuration payload when instantiating an axs.AuditConfiguration

2.7.0 - 2015-05-15

New rules

  • This element does not support ARIA roles, states and properties (src/audits/AriaOnReservedElement.js)
  • aria-owns should not be used if ownership is implicit in the DOM (src/audits/AriaOwnsDescendant.js)
  • Elements with ARIA roles must be in the correct scope (src/audits/AriaRoleNotScoped.js)
  • An element's ID must be unique in the DOM (src/audits/DuplicateId.js)
  • The web page should have the content's human language indicated in the markup (src/audits/HumanLangMissing.js)
  • An element's ID must not be present in more that one aria-owns attribute at any time (src/audits/MultipleAriaOwners.js)
  • ARIA attributes which refer to other elements by ID should refer to elements which exist in the DOM (src/audits/NonExistentAriaRelatedElement.js - previously src/audits/NonExistentAriaLabeledBy.js)
  • Elements with ARIA roles must ensure required owned elements are present (src/audits/RequiredOwnedAriaRoleMissing.js)
  • Avoid positive integer values for tabIndex (src/audits/TabIndexGreaterThanZero.js)
  • This element has an unsupported ARIA attribute (src/audits/UnsupportedAriaAttribute.js)

Enhancements:

  • Add configurable blacklist phrases and stop words to LinkWithUnclearPurpose (#99)
  • Detect and warn if we reuse the same code for more than one rule. (#133)
  • Force focus before testing visibility on focusable elements. (#65)
  • Use getDistributedNodes to get nodes distributed into shadowRoots (#128)
  • Add section to Audit Rules page for HumanLangMissing and link to it from rule (#119)
  • Reference "applied role" in axs.utils.getRoles enhancement (#130)
  • Add warning that AX_FOCUS_02 is not available from axs.Audit.run() (#85)

Bug fixes:

  • Incorrect use of nth-of-type against className in utils.getQuerySelectorText (#87)
  • AX_TEXT_01 Accessibility Audit test should probably ignore role=presentation elements (#97)
  • Fix path to audit rules in phantomjs runner (#108)
  • Label audit should fail if form fields lack a label, even with placeholder text (#81)
  • False positives for controls without labels with role=presentation (#23)
  • Fix "valid" flag on return value of axs.utils.getRoles (#131)

Note: this version number is somewhat arbitrary - just bringing it vaguely in line with the extension since that's where the library originated - but will use semver for version bumps going forward from here.

0.0.5 - 2014-02-04

Enhancements:

  • overlapping elements detection code made more sophisticated
  • axs.properties.getFocusProperties() returns more information about visibility
  • new axs.properties.hasDirectTextDescendant() method with more sophisticated detection of text content

Bug fixes:

  • FocusableElementNotVisibleAndNotAriaHidden audit passes on elements which are brought onscreen on focus
  • UnfocusableElementsWithOnclick checks for element.disabled
  • Fix infinite loop when getting descendant text content of a label containing an input
  • Detect elements which are out of scroll area of any parent element, not just the document scroll area
  • findTextAlternatives doesn't throw TypeError if used on a HTMLSelectElement

0.0.4 - 2013-10-03

Enhancements:

  • axs.AuditRule.run() has a new signature: it now takes an options object. Please see method documentation for details.
  • Audit Rule severity can be overridden (per Audit Rule) in AuditConfig.

Bug fixes:

  • axs.utils.isLowContrast() now rounds to the nearest 0.1 before checking (so #777 is now a passing value)
  • MainRoleOnInappropriateElement was always failing due to accessible name calculation taking the main role into account and not descending into content (now just gets descendant content directly)
  • UnfocusableElementsWithOnClick had a dangling if-statement causing very noisy false positives
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment