LibWeb: Implement HTMLIFrameElement.loading

This commit is contained in:
Jamie Mansfield
2024-05-23 22:54:07 +01:00
committed by Andreas Kling
parent 9ee061ea14
commit 600daea544
Notes: sideshowbarker 2024-07-18 05:01:22 +09:00
3 changed files with 25 additions and 1 deletions

View 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>