Html errors in pages when using olivero

Created on 11 November 2025, 9 days ago

Problem/Motivation

We are investigating switching to the olivero theme on a site with > 400,000 nodes and are nearly there, but when we run any page through an html checker we see 2 html errors and 4 warnings. As we automatically check html and produce reports this is holding us back from switching. I can edit the templates to fix 5 but the one in a menu item seems to be generated elsewhere. I have to include this menu which is hidden via css as we use superfish and to make the hamburger work the workaround seems to be a dummy non-superfish menu.
I can add local fixed templates to fix 5 myself but not the menu one.

Warning: The banner role is unnecessary for element header.

From line 47, column 11; to line 47, column 99

↩↩

Error: Element button is missing one or more of the following attributes: type.

From line 51, column 13; to line 51, column 190

Attributes for element button:
Global attributes
disabled — Whether the form control is disabled
form — Associates the element with a form element
formaction — URL to use for form submission
formenctype — Entry list encoding type to use for form submission
formmethod — Variant to use for form submission
formnovalidate — Bypass form control validation for form submission
formtarget — Browsing context for form submission
name — Name of the element to use for form submission and in the form.elements API
type — Type of button
value — Value to be used for form submission

Error: Attribute fetchpriority not allowed on element img at this point.

From line 71, column 9; to line 71, column 90

>↩ ↩

Attributes for element img:
Global attributes
alt — Replacement text for use when images are not available
src — Address of the resource
srcset — Images to use in different situations (e.g., high-resolution displays, small monitors, etc.)
sizes — Image sizes for different page layouts
crossorigin — How the element handles crossorigin requests
usemap — Name of image map to use
ismap — Whether the image is a server-side image map
width — Horizontal dimension
height — Vertical dimension
referrerpolicy — Referrer policy for fetches initiated by the element
decoding — Decoding hint to use when processing this image for presentation
loading — Used when determining loading deferral

Warning: The navigation role is unnecessary for element nav.

From line 1819, column 1; to line 1819, column 161

↩↩

Warning: The navigation role is unnecessary for element nav.

From line 1866, column 9; to line 1866, column 86

>↩ ↩ <

Warning: The main role is unnecessary for element main.

From line 1914, column 27; to line 1914, column 44

Steps to reproduce

Run an html checker on any web page

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Component

Code

Created by

🇬🇧United Kingdom phil stringer

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024