Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/embedded-content/the-audio-element/audio-loading-attr-default.tentative.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="author" title="Squarespace" href="https://www.squarespace.com/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<audio id="target"></audio>
<script>
const audio = document.getElementById("target");
test(() => {
assert_equals(
audio.loading,
"eager",
"Audio loading property should be 'eager' when attribute is not set"
);
}, "Audio loading attribute default should be eager when not set");
</script>