Skip to content

Commit 813402b

Browse files
committed
Fix #85 return Array instead of NodeList
1 parent 0de68f9 commit 813402b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ferrum/frame/dom.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def css(selector, within: nil)
6969
code = <<~JS
7070
let selector = arguments[0];
7171
let within = arguments[1] || document;
72-
let results = within.querySelectorAll(selector);
72+
let results = Array.from(within.querySelectorAll(selector));
7373
arguments[2](results);
7474
JS
7575

0 commit comments

Comments
 (0)