Skip to content

Commit aeff4d8

Browse files
committed
✏️ remove comments from copilot auto-fix
1 parent d5fe65b commit aeff4d8

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

js/main.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@ function handleSearch(e) {
260260

261261
const titleEl = document.getElementById('titleText');
262262
if (titleEl) {
263-
// Safely update the title text and count without using innerHTML with untrusted input
264263
titleEl.textContent = `Résultats pour "${q}" `;
265264
let countSpan = titleEl.querySelector('.text-gray-500.text-sm.ml-2');
266265
if (!countSpan) {
@@ -272,7 +271,6 @@ function handleSearch(e) {
272271
} else {
273272
const sectionTitle = document.getElementById('sectionTitle');
274273
if (sectionTitle) {
275-
// Rebuild the section title structure using DOM APIs to avoid interpreting q as HTML
276274
while (sectionTitle.firstChild) {
277275
sectionTitle.removeChild(sectionTitle.firstChild);
278276
}

0 commit comments

Comments
 (0)