Skip to content

[Bug]: A form field element should have an id or name attribute #791

@ned-bs

Description

@ned-bs

Expected Behavior

There should be no error on there.
I reported it in here, they told me that it is related with you :)

pressidium/pressidium-cookie-consent#129

Current Behavior

A form field element has neither an id nor a name attribute. This might prevent the browser from correctly autofilling the form.

To fix this issue, add a unique id or name attribute to a form field. This is not strictly needed, but still recommended even if you have an autocomplete attribute on the same element.

4 resources
Violating node
Violating node
Violating node
Violating node

Steps to reproduce

To see the issue
Open the website
right click
inspect
console
issues

Proposed fix or additional info.

proper naming for these

<input class="c-tgl" type="checkbox" value="necessary" disabled="">
<input class="c-tgl" type="checkbox" value="analytics">
<input class="c-tgl" type="checkbox" value="targeting">
<input class="c-tgl" type="checkbox" value="preferences">

Version

pressidium cookie plugin

On which browser do you see the issue?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageyet to be reviewed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions