Test Start

This test uses scripting to modify the content of the H1 elements on the page to match that of the page title.

Test End

Rule References

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

Calculations

No calculations for test 39

Test Description

  • This test uses scripting to modify page H1 content to match that of the title.

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 to match that 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($('title').text());
});