Skip to content

Commit 3389d28

Browse files
arnayv-47github-advanced-security[bot]
andauthored
Potential fix for code scanning alert no. 82: DOM text reinterpreted as HTML
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent c42ab5c commit 3389d28

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

testfiles/TF10/TC10.7-2.b-pass-1.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
document.getElementById("order-form").setAttribute("hidden","hidden");
7676

7777
document.getElementById("pizza-number").innerHTML = number;
78-
document.getElementById("pizza-time").innerHTML = time;
78+
document.getElementById("pizza-time").textContent = time;
7979

8080
const pizza_price = 10; //dollars
8181
let total = "$" + parseInt(number * pizza_price) + ".89";

0 commit comments

Comments
 (0)