Fix several bugs introduced by moving the HTMLParser to use the new foam.html.Element model.