From 19f69ce219f88c39568095bf36c19e06bf219790 Mon Sep 17 00:00:00 2001 From: Sakthivel J Date: Tue, 5 May 2026 15:42:22 +0530 Subject: [PATCH] Refractor: changed innerHtml to innerText --- js-api-examples/global.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/js-api-examples/global.html b/js-api-examples/global.html index 1cbaf2f..5d7fcf0 100644 --- a/js-api-examples/global.html +++ b/js-api-examples/global.html @@ -1,9 +1,10 @@ - + - + + WebAssembly Globals example @@ -12,11 +13,11 @@ const output = document.getElementById("output"); function assertEq(msg, got, expected) { - output.innerHTML += `Testing ${msg}: `; + output.innerText += `Testing ${msg}: `; if (got !== expected) { - output.innerHTML += `FAIL!
Got: ${got}
Expected: ${expected}
`; + output.innerText += `FAIL!\nGot: ${got}\nExpected: ${expected}\n`; } else { - output.innerHTML += `SUCCESS! Got: ${got}
`; + output.innerText += `SUCCESS! Got: ${got}\n`; } }