fix block strategy

If an element was blocked, its child nodes should also be blocked.
The interactions and mutations on the element and its child nodes
also need to be blocked.
This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent c603ff3b1e
commit e4cb91e1e6
5 changed files with 256 additions and 6 deletions

12
test/html/block.html Normal file
View File

@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Block record</title>
</head>
<body>
<div class="rr-block"><input type="text" /> <span id="text"></span></div>
</body>
</html>