aboutsummaryrefslogtreecommitdiff
path: root/test/data/html
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-12-04 18:20:05 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-12-04 18:23:05 -0500
commitdcddbee07e20163ae167dd67fe58f0776f9acb64 (patch)
tree4a55c4bd42859f7bebae9d9cb31c6ae5fa0e3f9a /test/data/html
parent4b80a486181b902f3b1e089b584818ce725a91be (diff)
Update how ts comments are handled
Diffstat (limited to 'test/data/html')
-rw-r--r--test/data/html/test-document2-script.js30
1 files changed, 15 insertions, 15 deletions
diff --git a/test/data/html/test-document2-script.js b/test/data/html/test-document2-script.js
index 5a6ad4d1..f6082802 100644
--- a/test/data/html/test-document2-script.js
+++ b/test/data/html/test-document2-script.js
@@ -22,17 +22,17 @@
function requestFullscreen(element) {
if (element.requestFullscreen) {
element.requestFullscreen();
- // @ts-ignore - Browser compatibility
+ // @ts-expect-error - Browser compatibility
} else if (element.mozRequestFullScreen) {
- // @ts-ignore - Browser compatibility
+ // @ts-expect-error - Browser compatibility
element.mozRequestFullScreen();
- // @ts-ignore - Browser compatibility
+ // @ts-expect-error - Browser compatibility
} else if (element.webkitRequestFullscreen) {
- // @ts-ignore - Browser compatibility
+ // @ts-expect-error - Browser compatibility
element.webkitRequestFullscreen();
- // @ts-ignore - Browser compatibility
+ // @ts-expect-error - Browser compatibility
} else if (element.msRequestFullscreen) {
- // @ts-ignore - Browser compatibility
+ // @ts-expect-error - Browser compatibility
element.msRequestFullscreen();
}
}
@@ -41,17 +41,17 @@ function requestFullscreen(element) {
function exitFullscreen() {
if (document.exitFullscreen) {
document.exitFullscreen();
- // @ts-ignore - Browser compatibility
+ // @ts-expect-error - Browser compatibility
} else if (document.mozCancelFullScreen) {
- // @ts-ignore - Browser compatibility
+ // @ts-expect-error - Browser compatibility
document.mozCancelFullScreen();
- // @ts-ignore - Browser compatibility
+ // @ts-expect-error - Browser compatibility
} else if (document.webkitExitFullscreen) {
- // @ts-ignore - Browser compatibility
+ // @ts-expect-error - Browser compatibility
document.webkitExitFullscreen();
- // @ts-ignore - Browser compatibility
+ // @ts-expect-error - Browser compatibility
} else if (document.msExitFullscreen) {
- // @ts-ignore - Browser compatibility
+ // @ts-expect-error - Browser compatibility
document.msExitFullscreen();
}
}
@@ -62,11 +62,11 @@ function exitFullscreen() {
function getFullscreenElement() {
return (
document.fullscreenElement ||
- // @ts-ignore - Browser compatibility
+ // @ts-expect-error - Browser compatibility
document.msFullscreenElement ||
- // @ts-ignore - Browser compatibility
+ // @ts-expect-error - Browser compatibility
document.mozFullScreenElement ||
- // @ts-ignore - Browser compatibility
+ // @ts-expect-error - Browser compatibility
document.webkitFullscreenElement ||
null
);