summaryrefslogtreecommitdiffstats
path: root/dom/html/reftests/autofocus/button-ref.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/html/reftests/autofocus/button-ref.html')
-rw-r--r--dom/html/reftests/autofocus/button-ref.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/dom/html/reftests/autofocus/button-ref.html b/dom/html/reftests/autofocus/button-ref.html
new file mode 100644
index 000000000..878c8e268
--- /dev/null
+++ b/dom/html/reftests/autofocus/button-ref.html
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <body onload="document.getElementsByTagName('button')[1].focus();">
+ <button></button><button onfocus="document.documentElement.removeAttribute('class');"></button><button></button>
+ </body>
+</html>