Fix #13974: XML .attr("type")