Added more support for HTML that lacks nice things like rel attributes.