Filter DOM elements when running the processing model.

Fixes #159.