redirect_to |
---|
- WCAG SC 4.1.1 Parsing -- In content implemented using markup languages, elements have complete start and end tags, elements are nested according to their specifications, elements do not contain duplicate attributes, and any IDs are unique, except where the specifications allow these features.
This baseline test requires that the content has no errors in element and attribute syntax and provides properly nested start/end tags to avoid errors that prevent user agents from parsing the content reliably. If the content cannot be parsed into a data structure, then different user agents, including assistive technologies, may present it differently or be completely unable to parse it.
- Note: Start and end tags that are missing a critical character in their formation, such as a closing angle bracket or a mismatched attribute value quotation mark are not complete.
- Markup is not always available to assistive technologies or to user selectable user agents such as browsers. Software sometimes uses markup languages internally for persistence of the software user interface, in ways where the markup is never available to assistive technology (either directly or through a document object model (DOM)), or to a user agent (such as a browser). In such cases, conformance to this provision would have no impact on accessibility as it can have for web content where it is exposed.
- As stated in the requirement language, some specifications may allow duplicate IDs. For example some markup languages may allow duplicate IDs, provided that IDs are unique for peer elements under the same parent element.
Baseline Test ID: 24.1-Parsing
All web pages
- Check that (except where the specifications allow these features): [SC 4.1.1]
- elements have complete start and end tags,
- elements are nested according to their specifications,
- elements do not contain duplicate attributes, and
- any IDs are unique.
If any of the above checks fail, then Baseline Test 24.1-Parsing fails.
While validators can be great tools for catching errors, they may not specify which are only parsing errors or catch all cases where content fails to fully conform to a specification.
The following sufficient techniques and/or common failures were considered when developing this test procedure for this baseline requirement:
- G134: Validating Web pages
- G192: Fully conforming to specifications
- H88: Using HTML according to spec
- H74: Ensuring that opening and closing tags are used according to specification AND H93: Ensuring that id attributes are unique on a Web page AND H94: Ensuring that elements do not contain duplicate attributes
Home/Table of Contents | Previous Baseline | Appendix A - Cross Reference Tables