getgrav / getgrav/grav-plugin-form

Button with URL doesn't pass HTML validation

Open
#486 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
PHP
Stars
64
Forks
80
Avg merge
10h 13m
Merged PRs (30d)
9

Description

When a button on a form has a URL it is wrapped in an anchor tag, this does not pass validation at validator.w3.org with the error "The element button must not appear as a descendant of the a element."

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the form button rendering path used when a button has a URL, then reproduce the generated markup and check it at validator.w3.org. Done means the URL-bearing button no longer places a button element inside an anchor and the resulting HTML passes validation.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.