Good catch, this is an encoding bug in the DOM implementation. Text content should not include the attributes.