Skip to content

Accessibility issues caused by components #133

@haggishunt56

Description

@haggishunt56

The hmpo-forms and hmpo-select components are returning html validation errors which, in turn, are causing projects using these components to fail accessibility tests.

hmpo-form error:

In a project implementing hmpo-form, the source of the compiled element will look something like this: <form action="/some-action" method="POST" autocomplete="off" novalidate="true" spellcheck="false">
Inputting this into the W3C HTML validator returns the error

Bad value true for attribute novalidate on element form.

The compiled element should be: <form action="/some-action" method="POST" autocomplete="off" novalidate spellcheck="false">

hmpo-select error:

In a project implementing hmpo-select, the compiled element will include tags with no label attribute. The label is included between the opening and closing tags, i.e. <option value="1_DMT">DMT</option>. This causes the error

Element option without attribute label must not be empty.

The option element should instead be <option value="1_DMT" label="DMT"></option>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions