]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(core): remove unnecessary role=banner on top level header
authorGrigorii K. Shartsev <me@shgk.me>
Wed, 18 Oct 2023 15:02:13 +0000 (17:02 +0200)
committerGrigorii K. Shartsev <me@shgk.me>
Sat, 21 Oct 2023 15:35:44 +0000 (17:35 +0200)
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>
core/templates/layout.guest.php
core/templates/layout.user.php

index 7a741d33a74a10648fb17cb7ebce1ed2efb8b907..e90476291bfebaaf89a554c2431c3706b833c768 100644 (file)
@@ -33,7 +33,7 @@ p($theme->getTitle());
                <div class="wrapper">
                        <div class="v-align">
                                <?php if ($_['bodyid'] === 'body-login'): ?>
-                                       <header role="banner">
+                                       <header>
                                                <div id="header">
                                                        <div class="logo"></div>
                                                </div>
index aebcda5c84940c7fdd80cae9624795b2ee6a2a57..9c23930f324913e6507dc45e0999af12e89d5209 100644 (file)
@@ -56,7 +56,7 @@ p($theme->getTitle());
                        <?php if ($_['id-app-navigation'] !== null) { ?><a href="<?php p($_['id-app-navigation']); ?>" class="button primary skip-navigation"><?php p($l->t('Skip to navigation of app')); ?></a><?php } ?>
                </div>
 
-               <header role="banner" id="header">
+               <header id="header">
                        <div class="header-left">
                                <a href="<?php print_unescaped($_['logoUrl'] ?: link_to('', 'index.php')); ?>"
                                        aria-label="<?php p($l->t('Go to %s', [$_['logoUrl'] ?: $_['defaultAppName']])); ?>"