summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/conformance-checkers/html-aria/_functional/tree/js/init.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/conformance-checkers/html-aria/_functional/tree/js/init.js')
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-aria/_functional/tree/js/init.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/testing/web-platform/tests/conformance-checkers/html-aria/_functional/tree/js/init.js b/testing/web-platform/tests/conformance-checkers/html-aria/_functional/tree/js/init.js
new file mode 100644
index 0000000000..c4e507f1f3
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-aria/_functional/tree/js/init.js
@@ -0,0 +1,8 @@
+function myLoad(){
+ $$('[role="tree"]').each(function(elm){
+ // for each node where [role="tree"], create a new Aria.Tree instance and append it to array Aria.Trees
+ Aria.Trees.push(new Aria.Tree(elm));
+ });
+}
+Event.observe(window, 'load', myLoad); // will probably use onDOMContentLoaded instead of onLoad
+