can we avoid setting an element's content via attributes?