Skip to content
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

HTML Validation: remove unnecessary roles #40980

Merged
merged 3 commits into from
Oct 23, 2023

Conversation

ShGKme
Copy link
Contributor

@ShGKme ShGKme commented Oct 19, 2023

Summary

Warning: The banner role is unnecessary for element header.
Warning: The contentinfo role is unnecessary for element footer.

When <header> or <footer> is used as a part of a page (not inside <section> and etc), they have those roles initially.

No visual changes.

Checklist

@ShGKme ShGKme added this to the Nextcloud 28 milestone Oct 19, 2023
@ShGKme ShGKme self-assigned this Oct 19, 2023
By default, the HTML's `<header>` element has an identical meaning to the banner landmark,
unless it is a descendant of `<aside>`, `<article>`, `<main>`, `<nav>`, or `<section>`.

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
`<footer>` has this role initially then it is a page footer, not inside `section`/`article`, and etc.

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
@ShGKme ShGKme force-pushed the fix/37092/remove-unnecessary-roles branch from 9945b2e to 8159cdb Compare October 21, 2023 15:40
@ShGKme ShGKme added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Oct 21, 2023
@ShGKme ShGKme marked this pull request as ready for review October 21, 2023 15:40
@szaimen
Copy link
Contributor

szaimen commented Oct 23, 2023

Drone failure urelated

@szaimen szaimen merged commit fe62fa7 into master Oct 23, 2023
40 checks passed
@szaimen szaimen deleted the fix/37092/remove-unnecessary-roles branch October 23, 2023 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants