ladybird/Tests/LibWeb/Text/input/DOM/Document-methods-that-must-do-nothing.html
Tim Ledbetter 0564e06f10 LibWeb: Add methods to Document that must do nothing
This change adds the `clear()`, `captureEvents()` and `releaseEvents()`
methods to the document object. These methods are obsolete, but are
still included in the HTML specification, which says they must do
nothing.
2024-04-14 10:45:43 +02:00

9 lines
400 B
HTML

<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {
println(`document.clear() returns undefined: ${document.clear() === undefined}`);
println(`document.captureEvents() returns undefined: ${document.captureEvents() === undefined}`);
println(`document.releaseEvents() returns undefined: ${document.releaseEvents() === undefined}`);
});
</script>