[KongchangAI]
ConceptinnerHTML属性

innerHTML

A property of DOM elements used to get or set the HTML content within an element. It can be exploited to inject malicious markup, resulting in cross-site scripting (XSS) risks.

Timeline (last 90 days)

Oct 30

element.innerHTML = "" goes through the HTML parser path, destroys and rebuilds all child nodes, loses already-bound event listeners, and introduces a potential XSS surface when the assigned value contains user input.

Unverified50%

All Facts (1)

Source Articles