mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-12 01:47:00 +02:00
This reflects the HTML `kind` attribute. (cherry picked from commit bdaa7f0e8ed738ad0bd6e19878f296436fe40377)
21 lines
939 B
HTML
21 lines
939 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
const trackElement = document.createElement("track");
|
|
println(`kind initial value: '${trackElement.kind}'`);
|
|
trackElement.kind = "invalid";
|
|
println(`kind value after setting to "invalid": '${trackElement.kind}'`);
|
|
trackElement.kind = "captions";
|
|
println(`kind value after setting to "captions": '${trackElement.kind}'`);
|
|
trackElement.kind = null;
|
|
println(`kind value after setting to null: '${trackElement.kind}'`);
|
|
trackElement.kind = "CHAPTERS";
|
|
println(`kind value after setting to "CHAPTERS": '${trackElement.kind}'`);
|
|
trackElement.kind = "";
|
|
println(`kind value after setting to "": '${trackElement.kind}'`);
|
|
trackElement.removeAttribute("kind");
|
|
println(`kind value after calling removeAttribute: '${trackElement.kind}'`);
|
|
});
|
|
</script>
|