Reimplemented parts of minification to support children in attribute filter