Generalizing has-mathml-in-chunk to has-element-in-chunk