Unverified50% confidenceFactExact time
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.
1
Sources
50%
Confidence
Long-term
Relevance
10/30/2026
First Seen
Sources
Related Entities
Related Claims
UnverifiedUsing dangerouslySetInnerHTML in React bypasses the automatic escaping mechanism, leaving the developer fully responsible for content sanitization, and it is a common entry point for XSS.70% similarUnverifiedAllowing users to submit rich text content containing HTML markup can lead to XSS (Cross-Site Scripting) attacks, where malicious users can inject script tags to execute arbitrary JavaScript code.69% similarUnverifiedDOM selectors locate web elements via element IDs, class names or XPath paths, and are highly prone to failure when page structure changes dynamically, elements are obscured, or rendering is complex.68% similarUnverifiedXSS (Cross-Site Scripting) is when a page renders user input directly as HTML, causing malicious scripts to execute in other people's browsers; it is divided into reflected, stored, and DOM types.68% similarUnverifiedhtmx lets the server return HTML fragments, which the browser uses to directly replace partial page content.68% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1116112API
curl https://kongchang.com/api/v1/knowledge/claims/1116112MCP
get_claim(id=1116112)