Skip to content

Make <wicket:header-items/> HTML spec compliant#1458

Open
asvanberg wants to merge 1 commit into
apache:masterfrom
asvanberg:wicket-header-items-spec-compliance
Open

Make <wicket:header-items/> HTML spec compliant#1458
asvanberg wants to merge 1 commit into
apache:masterfrom
asvanberg:wicket-header-items-spec-compliance

Conversation

@asvanberg
Copy link
Copy Markdown
Contributor

According to the HTML specification for <meta> element, a <meta> tag with the name attribute specified must also specify content.

If either name, http-equiv, or itemprop is specified, then the content attribute must also be specified. Otherwise, it must be omitted.

Since <wicket:header-items/> is often placed in a base class for pages it means that no pages in the application will pass HTML validation.

Check the following HTML against https://validator.w3.org/#validate_by_input

<!DOCTYPE html>
<html lang="en">
  <head>
    <title>wicket-header-items</title>
    <meta name="wicket.header.items">
  </head>
</html>

According to the [HTML specification for `<meta>` element](https://html.spec.whatwg.org/multipage/semantics.html#the-meta-element), a `<meta>` tag with the `name` attribute specified must also specify `content`.

> If either name, http-equiv, or itemprop is specified, then the content attribute must also be specified. Otherwise, it must be omitted.

Since `<wicket:header-items/>` is often placed in a base class for pages it means that no pages in the application will pass HTML validation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant