add a link element test

This commit is contained in:
nikneym
2025-09-22 16:35:06 +03:00
parent 907a941795
commit 71bc624a74

View File

@@ -280,3 +280,12 @@
divElement.dir = "auto";
testing.expectEqual("auto", divElement.dir);
</script>
<script id=linkRel>
const linkElement = document.createElement("link");
// A newly created link element must have it's rel set to empty string.
testing.expectEqual("", linkElement.rel);
linkElement.rel = "stylesheet";
testing.expectEqual("stylesheet", linkElement.rel);
</script>