You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
name: attributes are not duplicated
rule_type: atomic
description: |
This rule checks that HTML and SVG starting tags do not contain duplicated attributes.
success_criterion:
4.1.1 # Parsing
test_aspects:
Source code
authors:
Wilco Fiers
Emma Pratt Richens
Applicability
The rule applies to any starting tag in an HTML or SVG file.
Note: This rule cannot be tested on the DOM Tree because the browser ignores duplicated attributes.
Expectation
For each test target, there are no duplicated attributes.
Assumptions
There are currently no assumptions.
Accessibility support
There are no major accessibility support issues known for this rule.
A set of instructions and statements to be interpreted by a computer. Each source code file has a file type. The method for determining file type depends on the method through which the file is loaded.
name: attributes are not duplicated
rule_type: atomic
description: |
This rule checks that HTML and SVG starting tags do not contain duplicated attributes.
success_criterion:
test_aspects:
authors:
Applicability
The rule applies to any starting tag in an HTML or SVG file.
Note: This rule cannot be tested on the DOM Tree because the browser ignores duplicated attributes.
Expectation
For each test target, there are no duplicated attributes.
Assumptions
There are currently no assumptions.
Accessibility support
There are no major accessibility support issues known for this rule.
Background
Test Cases
Passed
Passed example 1
No attributes are duplicated.
Passed example 2
No attributes, therefore no attributes are duplicated.
Passed example 3
Empty attributes, no attributes are duplicated.
Passed example 4
SVG, no attributes are duplicated.
Passed example 5
Script, no attributes are duplicated. HTML or SVG code within a script should be ignored.
Failed
Failed example 1
At least one attribute is duplicated.
Failed example 2
Empty attributes, at least one attribute is duplicated.
Failed example 3
SVG, at least one attribute is duplicated.
Inapplicable
Inapplicable example 1
Code is XML, and not an HTML or SVG document.
Inapplicable example 2
Code is JavaScript, and not an HTML or SVG document.
The text was updated successfully, but these errors were encountered: