aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/error/parse/isecdom.ngdoc
blob: 666bf36cb4687488c402ff127817a16d50d0b56b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
@ngdoc error
@name $parse:isecdom
@fullName Referencing a DOM node in Expression
@description

Occurs when an expression attempts to access a DOM node.

AngularJS restricts access to DOM nodes from within expressions since it's a known way to
execute arbitrary Javascript code.

This check is only performed on object index and function calls in Angular expressions.  These are
places that are harder for the developer to guard.  Dotted member access (such as a.b.c) does not
perform this check - it's up to the developer to not expose such sensitive and powerful objects
directly on the scope chain.

To resolve this error, avoid access to DOM nodes.