Only act on element nodes. Should improve performance and prevent bugs.