-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Target attribute on menus breaks HTML validation #16340
Comments
/cc @hyzx86 |
@sarahelsaig Looks like we're duplicating our work~ |
We triaged this issue and set the milestone according to the priority we think is appropriate (see the docs on how we triage and prioritize issues). This indicates when the core team may start working on it. However, if you'd like to contribute, we'd warmly welcome you to do that anytime. See our guide on contributions here. |
This was referenced Jul 1, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Since
target
attribute has been added to menu links (#15541) validation viahtml-validate
fails. This is because if there is no target specified, it creates an empty attribute, like<a class="nav-link px-lg-3 py-3 py-lg-4" href="/" target="">Home</a>
. This is not valid. If there is no target specified, the attribute should be omitted.Note: according to MDN the default is
target="_self"
so falling back to that value is also acceptable when omitting thetarget
attribute would be complicated.Orchard Core version
Latest preview, at least TheBlogTheme package is affected.
Expected behavior
Menu should produce valid HTML.
Logs and screenshots
An example entry of the validation report:
The text was updated successfully, but these errors were encountered: