Merge "WebInstaller: Add ARIA `role="main"` to overall div"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 18 Jun 2019 16:00:41 +0000 (16:00 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 18 Jun 2019 16:00:41 +0000 (16:00 +0000)
1  2 
includes/installer/WebInstallerOutput.php

@@@ -285,7 -285,7 +285,7 @@@ class WebInstallerOutput 
  <?php echo Html::openElement( 'body', [ 'class' => $this->getLanguage()->getDir() ] ) . "\n"; ?>
  <div id="mw-page-base"></div>
  <div id="mw-head-base"></div>
- <div id="content" class="mw-body">
+ <div id="content" class="mw-body" role="main">
  <div id="bodyContent" class="mw-body-content">
  
  <h1><?php $this->outputTitle(); ?></h1>
  
  <div id="mw-panel">
        <div class="portal" id="p-logo">
 -              <a style="background-image: url(images/installer-logo.png);"
 -                      href="https://www.mediawiki.org/"
 -                      title="Main Page"></a>
 +              <a href="https://www.mediawiki.org/" title="Main Page"></a>
        </div>
  <?php
        $message = wfMessage( 'config-sidebar' )->plain();
        public function outputShortHeader() {
  ?>
  <?php echo Html::htmlHeader( $this->getHeadAttribs() ); ?>
 +
  <head>
 -      <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
        <meta name="robots" content="noindex, nofollow" />
 +      <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
        <title><?php $this->outputTitle(); ?></title>
        <?php echo $this->getCssUrl() . "\n"; ?>
 -      <?php echo $this->getJQuery(); ?>
 -      <?php echo Html::linkedScript( 'config.js' ); ?>
 +      <?php echo $this->getJQuery() . "\n"; ?>
 +      <?php echo Html::linkedScript( 'config.js' ) . "\n"; ?>
  </head>
  
  <body style="background-image: none">