Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 418 Bytes

unsafe_html.md

File metadata and controls

16 lines (10 loc) · 418 Bytes

Pattern: Use of unsafe HTML API

Issue: -

Description

AVOID assigning directly to the src field of an EmbedElement, IFrameElement, ImageElement, or ScriptElement, or the href field of an AnchorElement.

Example of incorrect code:

var script = ScriptElement()..src = 'foo.js';

Further Reading