Skip to content

ally.js

JavaScript library to help modern web applications with accessibility concerns by making accessibility simpler

# ally.is.validArea

Determines if an <area> element is properly used via <map> by an <img>.

# Usage

var element = document.getElementById('victim');
var isValidArea = ally.is.validArea(element);

# Arguments

Name Type Default Description
element HTMLElement required The Element to test.

# Returns

Boolean, true if the element is a valid area.

# Throws

TypeError if element argument is not of type HTMLElement.

# Changes

# Notes

The object element's usemap attribute should be deprecated.

The Sequential Navigation Focus Order for Image Maps is not standardized.

Firefox only allows fully loaded images to reference image maps.

Multiple use of same image map hides elements from tabbing sequence - Gecko 1116126

# Contributing