DOM simplification