Skip to content

Commit 71bc624

Browse files
committed
add a link element test
1 parent 907a941 commit 71bc624

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/tests/dom/element.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,3 +280,12 @@
280280
divElement.dir = "auto";
281281
testing.expectEqual("auto", divElement.dir);
282282
</script>
283+
284+
<script id=linkRel>
285+
const linkElement = document.createElement("link");
286+
// A newly created link element must have it's rel set to empty string.
287+
testing.expectEqual("", linkElement.rel);
288+
289+
linkElement.rel = "stylesheet";
290+
testing.expectEqual("stylesheet", linkElement.rel);
291+
</script>

0 commit comments

Comments
 (0)