Links
- dart:html
- Node
- Node.bind
- Element
- TextInputElement
- Events
- Do not use the
element.on['some_event'].listen(...)
syntax. Doing so has two downsides:- it loses the event typing
- some DOM events may have multiple
platform-dependent event names under the
covers. The standard Stream getters you
will get the platform specific event name
automatically but you're on your own if you
use the
on[]
syntax. This also applies to$dom_addEventListener
. - Ref: dart_html:Events
- Do not use the
setInnerHtml
with NodeValidator and NodeTreeSanitizer
Links
- Changing the Dart URI Policy for HTML Sanitizing
- UriPolicy
- NodeValidatorBuilder
- allowTextElements
- allowNavigation
- allowImages
- allowHtml5
- Allows html5 constructs based on the Caja whitelists