summaryrefslogtreecommitdiffstats
path: root/dom/html/reftests/autofocus/autofocus-leaves-iframe.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/html/reftests/autofocus/autofocus-leaves-iframe.html')
-rw-r--r--dom/html/reftests/autofocus/autofocus-leaves-iframe.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/dom/html/reftests/autofocus/autofocus-leaves-iframe.html b/dom/html/reftests/autofocus/autofocus-leaves-iframe.html
new file mode 100644
index 000000000..0f950ebe2
--- /dev/null
+++ b/dom/html/reftests/autofocus/autofocus-leaves-iframe.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+ <link rel='stylesheet' type='text/css' href='style.css'>
+ <script>
+ function frameLoadHandler()
+ {
+ var i = document.createElement('input');
+ i.autofocus = true;
+ document.body.appendChild(i);
+ setTimeout(document.documentElement.removeAttribute('class'), 0);
+ }
+ </script>
+ <body>
+ <iframe onload="frameLoadHandler();" src="data:text/html,<input autofocus>"></iframe>
+ </body>
+</html>