11cb0ef41Sopenharmony_ci<!doctype html> 21cb0ef41Sopenharmony_ci<meta charset=utf-8> 31cb0ef41Sopenharmony_ci<title>Test that disabled is honored immediately in presence of dynamic changes</title> 41cb0ef41Sopenharmony_ci<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io"> 51cb0ef41Sopenharmony_ci<link rel="author" title="Andreas Farre" href="mailto:afarre@mozilla.com"> 61cb0ef41Sopenharmony_ci<link rel="help" href="https://html.spec.whatwg.org/multipage/#enabling-and-disabling-form-controls:-the-disabled-attribute"> 71cb0ef41Sopenharmony_ci<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1405087"> 81cb0ef41Sopenharmony_ci<script src=/resources/testharness.js></script> 91cb0ef41Sopenharmony_ci<script src=/resources/testharnessreport.js></script> 101cb0ef41Sopenharmony_ci<input type="button" value="Click" disabled> 111cb0ef41Sopenharmony_ci<script> 121cb0ef41Sopenharmony_ciasync_test(t => { 131cb0ef41Sopenharmony_ci // NOTE: This test will timeout if it fails. 141cb0ef41Sopenharmony_ci window.addEventListener('load', t.step_func(() => { 151cb0ef41Sopenharmony_ci let e = document.querySelector('input'); 161cb0ef41Sopenharmony_ci e.disabled = false; 171cb0ef41Sopenharmony_ci e.onclick = t.step_func_done(() => {}); 181cb0ef41Sopenharmony_ci e.click(); 191cb0ef41Sopenharmony_ci })); 201cb0ef41Sopenharmony_ci}, "disabled is honored properly in presence of dynamic changes"); 211cb0ef41Sopenharmony_ci</script> 22