@Test
public void testNonQuotedAttributeValue() {
String html = "<a href=123>xxx</a>";
LagartoDOMBuilder lagartoDOMBuilder = new LagartoDOMBuilder();
lagartoDOMBuilder.getConfig().setCalculatePosition(true);
Document document = lagartoDOMBuilder.parse(html);
assertEquals("<a href=\"123\">xxx</a>", document.getHtml());
assertTrue(document.check());
html = "<a href=../org/w3c/dom/'http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#element-list'>xxx</a>";
lagartoDOMBuilder = new LagartoDOMBuilder();
lagartoDOMBuilder.getConfig().setCalculatePosition(true);
document = lagartoDOMBuilder.parse(html);
assertTrue(document.check());
assertEquals("<a href=\"../org/w3c/dom/'http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#element-list'\">xxx</a>", document.getHtml());
}