Test Start

This test uses scripting to modify the content of the H1 elements on the page so that their text content is not a subset of the page title.

Test End

Rule References

Rule Pass IDs Fail IDs
Rule 16 none
  • test_h1
  • id1

Calculations

No calculations for test 42

Test Description

  • This test uses scripting to modify H1 page content so that it does not match or contain a subset of the title content.

Test Markup

User Agent Implementation

No user agent implementation information.

HTML Source Code


<div class="wrapper">
   <p>This test uses scripting to modify the content of the H1 elements on the page so that their text content is not a subset of the page title.</p>
</div>

CSS Code


div.wrapper {
  margin: 20px;
  padding: 10px;
  overflow: visible;
  background-color: #faf7f0;
  border: 1px solid #880000;
  -webkit-border-radius: 10px; /* Safari and Chrome rounded corners */
  -moz-border-radius: 10px; /* Firefox rounded corners */
  border-radius: 10px; /* Opera rounded corners */
}

Javascript Source Code


$(document).ready(function() {
   $('h1').text('This content is not a subset of the page title');
});