Without strict scope i could set a custom property like this: this.foo = "bar"
Is there a way to do it with strict scope?
Please provide more information - you are not talking about node properties right. Looks like JS.
may be use typeof ?