Remove redundant role="article" from <article> html tags

Created on 2 March 2020, over 4 years ago
Updated 2 May 2023, about 1 year ago

article is the default role of an<article> and thus the attribute can be removed.

To test this, copy this snippet into the W3 validator: https://validator.w3.org/nu/#textarea

<!DOCTYPE html>
<html lang="en">
<head>
<title>test</title>
</head>
<body>
<article role="article">
<h1>test</h1>
</article>
</body>
</html>

Also see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/article

📌 Task
Status

Fixed

Version

10.1

Component
Markup 

Last updated 7 days ago

No maintainer
Created by

🇧🇪Belgium martijn.cuppens

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

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.

Production build 0.69.0 2024