fix rendering values for nodes with attributes + add doctype