mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibWeb: Exclude inert elements from find in page queries
This commit is contained in:
parent
d410fa8381
commit
2e27ffab6c
Notes:
github-actions[bot]
2025-02-21 12:43:06 +00:00
Author: https://github.com/tcl3
Commit: 2e27ffab6c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3475
Reviewed-by: https://github.com/AtkinsSJ ✅
3 changed files with 28 additions and 11 deletions
12
Tests/LibWeb/Text/input/HTML/Window-find-inert.html
Normal file
12
Tests/LibWeb/Text/input/HTML/Window-find-inert.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<script src="../include.js"></script>
|
||||
<div>not inert</div>
|
||||
<div inert>inert</div>
|
||||
<script>
|
||||
test(() => {
|
||||
let initialResult = window.find("inert");
|
||||
let secondCallResult = window.find("inert");
|
||||
println(`window.find("inert") initial result: ${initialResult}`);
|
||||
println(`window.find("inert") second call: ${secondCallResult}`);
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue