Rename "attr" field to "attributes", in accordance with the DOM spec