Summary
This test consists in checking whether each indentical svg link have the same purpose and target.
Business description
Criterion
###Test
Description
For each web page, does each identical link that are vector links have the same purpose and target?
Level
A
Technical description
Scope
Page
Decision level
Semi-Decidable
Algorithm
Selection
Set1
All the <a>
tags with a "href"
attribute, with children (a[href]:has(*) )
Set2
All the elements of Set1 without own text and with only one child of type <svg>
(svg)
Set3
All the elements of Set2 without "title"
attribute and without context (assuming the definition of a link context in Rgaa3.0) and with an identical link text.
Set4
All the elements of Set2 with a not empty "title"
attribute, without context and with an identical link text (combinaison of the link text and the "title"
attribute text)
Set5
All the elements of Set2 with a "href"
attribute, with a context and with an identical link text (combinaison of the link text and the "title"
attribute text if it exists)
Process
####Â Test1
We check whether all the elements of Set3 have an identical "href"
attribute.
For each element returning false in Test1, raise a MessageA.
####Â Test2
We check whether all the elements of Set4 have an identical "href"
attribute.
For each element returning false in Test2, raise a MessageA.
####Â Test3
We check whether all the elements of Set5 have an identical "href"
attribute.
For each element returning false in Test3, raise a MessageB.
MessageA
- code : IdenticalLinkWithDifferentTarget
- status: Failed
- parameter : text,
"href"
attribute,"title"
, computed link text, tag name, snippet - present in source : yes
MessageB
- code : SuspectedIdenticalLinkWithDifferentTarget
- status: Pre-Qualified
- parameter : text,
"href"
attribute,"title"
, computed link text, tag name, snippet - present in source : yes
Analysis
Not Applicable
The page has no group of image links with an identical link text (Set3, Set4 and Set5 are empty)
Failed
- At least one element of the Set3 has a
"href"
attribute different from the others (Test1 returns false for at least one element) - At least one element of the Set4 has a
"href"
attribute different from the others (Test2 returns false for at least one element)
Pre-Qualified
In all other cases
Notes
We assume here that the image links have only one child of type <svg>