<commit_before># Rule 1.1.3
## Summary

This test consists in checking whether each form button is defined with
an "alt" attribute

## Business description

### Criterion

[1.1](http://references.modernisation.gouv.fr/sites/default/files/RGAA3_RC2-1/referentiel_technique.htm#crit-1-1)

### Test

[1.1.3](http://references.modernisation.gouv.fr/sites/default/files/RGAA3_RC2-1/referentiel_technique.htm#test-1-1-3)

### Description

Chaque bouton de formulaire (balise `input` avec l'attribut `type="image"`) a-t-il un attribut `alt` ?

### Level

**A**

## Technical description

### Scope

**page**

### Decision level

**decidable**

## Algorithm

### Selection

Set1 : All the <input\> tags with a "type" attribute equals to "image"

### Process

Test1 : Check whether each element of Set1 contains an "alt" attribute.

-   Message :

1.  Type : SourceCodeRemark
2.  Code : AltAttributeMissing
3.  Issue : Failed
4.  Target : <form\>
5.  Value : x
6.  Case : For each element returning false in Test1

-   used nomenclature : none

-   reference : none

### Analysis

#### Not Applicable

The page has no <input\> tag with a "type" attribute equals to "image"
(Set1 is empty)

#### Failed

At least one form button has no "alt" attribute (Test1 returns false for
at least one element)

#### Passed

All the <input\> tags with a "type" attribute equals to "image" have an
"alt" attribut

## Notes

No notes yet for that rule<commit_msg>add rule sheet design for rule 1.1.3<commit_after># Rule 1.1.3

## Summary

This test consists in checking whether each form button is defined with an `"alt"` attribute

## Business description

### Criterion

[1.1](http://references.modernisation.gouv.fr/sites/default/files/RGAA3_RC2-1/referentiel_technique.htm#crit-1-1)

### Test

[1.1.3](http://references.modernisation.gouv.fr/sites/default/files/RGAA3_RC2-1/referentiel_technique.htm#test-1-1-3)

### Description

Chaque bouton de formulaire (balise `input` avec l'attribut `type="image"`) a-t-il un attribut `alt` ?

### Level

**A**

## Technical description

### Scope

**page**

### Decision level

**decidable**

## Algorithm

### Selection

**Set1**

All the `<input>` tags with a `"type"` attribute equals to "image"

### Process

**Test1**

For each element of **Set1**, test the presence of an `"alt"` attribute.

For each occurrence of false-result of Test1, raise a MessageA

#### MessageA 

-    code : **AltMissing** 
-    status: Failed
-    parameter : `"src"` attribute, tag name
-    present in source : yes

### Analysis

#### Passed

All the `<input>` tags with a `"type"` attribute equals to "image" of the page have an `"alt"` attribute (**Test1** returns true for all the elements of **Set1**)

#### Failed

At least one `<input>` tag with a `"type"` attribute equals to "image" has no `"alt"` attribute (**Test1** returns failed for at least one element)

#### Not Applicable

The page has no `<input>` tag with a `"type"` attribute equals to "image" tag (**Set1** is empty)
{'fraction_non_alphanumeric': 0.14166388239224859, 'fraction_numerical': 0.020380888740394253, 'mean_word_length': 4.1179487179487175, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5959373', 'n_tokens_mistral': 1024, 'n_tokens_neox': 984, 'n_words': 342}