html: handle unexpected EOF during parsing.

This lets us parse HTML like "<html>foo".

R=gri
CC=golang-dev
https://golang.org/cl/3460043
2 files changed