Commit 9bb75587 authored by catch's avatar catch
Browse files

Issue #3117230 by martijn.cuppens, abhijeet.kumar2107, Gauravvvv, Kristen Pol,...

Issue #3117230 by martijn.cuppens, abhijeet.kumar2107, Gauravvvv, Kristen Pol, alexpott, andrewmacpherson, Chi, idebr: Remove redundant role="article" from <article> html tags
parent 215049b5
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -593,8 +593,6 @@ function template_preprocess_node(&$variables) {
    }
  }

  // Add article ARIA role.
  $variables['attributes']['role'] = 'article';
}

/**
+1 −1
Original line number Diff line number Diff line
@@ -128,7 +128,7 @@ public function testPictureOnNodeComment() {

    // Verify that the image is displayed on the node page.
    $this->drupalGet('node/' . $node->id());
    $elements = $this->cssSelect('article[role="article"] > footer img[alt="' . $alt_text . '"][src="' . $image_url . '"]');
    $elements = $this->cssSelect('article > footer img[alt="' . $alt_text . '"][src="' . $image_url . '"]');
    $this->assertCount(1, $elements, 'User picture with alt text found on node page.');

    // Enable user pictures on comments, instead of nodes.