Test Start

This page uses scripting to remove the HTML LANG attribute.

Test End

Rule References

Rule Pass IDs Fail IDs
Rule 34 none
  • html

Calculations

No calculations for test 95

Test Description

  • This test uses scripting to remove the LANG attribute from the HTML element.

Test Markup

User Agent Implementation

No user agent implementation information.

HTML Source Code


<div class="wrapper">
   <p>This page uses scripting to remove the HTML LANG attribute.</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() {

      $('html').removeAttr('lang');

});