optimized node search only inside template, also better against conflicts with other HTML nodes