mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
LibWeb: Implement HTMLIFrameElement.loading
This commit is contained in:
committed by
Andreas Kling
parent
9ee061ea14
commit
600daea544
Notes:
sideshowbarker
2024-07-18 05:01:22 +09:00
Author: https://github.com/jamierocks Commit: https://github.com/SerenityOS/serenity/commit/600daea544 Pull-request: https://github.com/SerenityOS/serenity/pull/24425 Reviewed-by: https://github.com/tcl3
18
Tests/LibWeb/Text/input/HTML/iframe-element-loading.html
Normal file
18
Tests/LibWeb/Text/input/HTML/iframe-element-loading.html
Normal file
@@ -0,0 +1,18 @@
|
||||
<iframe id="testFrame"></iframe>
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
const iframe = document.getElementById('testFrame');
|
||||
|
||||
println(`loading = ${iframe.loading}`);
|
||||
println('');
|
||||
|
||||
iframe.loading = 'lazy';
|
||||
|
||||
println(`loading = ${iframe.loading}`);
|
||||
println('');
|
||||
|
||||
iframe.loading = 'invalid-value';
|
||||
println(`loading = ${iframe.loading}`);
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user