author Mounir Lamouri <>
Sat, 18 Sep 2010 23:33:16 +0200
changeset 54342 b15d9c989201e77fdf2103fbf46fd3168f32a806
permissions -rw-r--r--
Bug 557087 (2/6) - Make the content aware of the new disabled state rule. r+a=sicking

<!DOCTYPE html>
<html class="reftest-wait">
  <!-- Test: if textarea has a disabled fieldset ancestor, it is barred from
             constraint validation and should not be affected by :valid
             pseudo-class. -->
  <link rel='stylesheet' type='text/css' href='style.css'>
    function onloadHandler()
      var fieldsets = document.getElementsByTagName("fieldset");
      fieldsets[1].disabled = true;
      fieldsets[0].disabled = false;
  <body onload="onloadHandler();">
    <fieldset disabled>
        <textarea class='notvalid'></textarea>