Asqatasun v4 - Summary

Asqatasun v4 - AccessiWeb 2.2 - Rule 6.4.2

Summary

This test consists in checking whether each indentical image link have the same purpose and target

Business description

Criterion : 6.4

Test : 6.4.2

Test description :

Does each identical link of type image have the same purpose and target?

Level : Bronze

Technical description

Scope : page

Decision level : semidecidable

Algorithm

Selection

Set1 : All the image links (see the definition of an image link in AccessiWeb2.2) with a href attribute, without title attribute, without context (assuming the definition of a link context in AccessiWeb 2.2) and with an identical link text.

Set2 : All the image links with a href attribute, a not emptytitle` attribute, without context and with an identical link text (combination of the link text and the "title" attribute text)

Set3 : All the image links with a href attribute, with a context and with an identical link text (combination of the link text and the title attribute text if it exists)

Process

Test1 : We check whether all the elements of Set1 have an identical href attribute

Test2 : We check whether all the elements of Set2 have an identical href attribute

Test3 : We check whether all the elements of Set3 have an identical href attribute

Analysis

  1. At least one element of the Set1 has a href attribute different from the others (Test1 returns false for at least one element)
  2. At least one element of the Set2 has a href attribute different from the others (Test2 returns false for at least one element)
  1. code : IdenticalLinkWithDifferentTarget
  2. status: Failed
  3. case : For each element returning false in Test1 and Test2
  4. parameter : tag name
  5. present in source : yes
  1. code : SuspectedIdenticalLinkWithDifferentTarget
  2. status: NMI
  3. case : For each element returning true in Test3
  4. parameter : tag name
  5. present in source : yes