mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Implement the HTMLTrackElement.kind attribute
This reflects the HTML `kind` attribute.
This commit is contained in:
committed by
Andreas Kling
parent
0c4f257021
commit
bdaa7f0e8e
Notes:
sideshowbarker
2024-07-17 20:19:08 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/bdaa7f0e8e Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/316
@@ -0,0 +1,20 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user