test for dom attributes