On 9 August 2012 01:32, Andy Balholm <
andyb...@gmail.com> wrote:
> Nigel and I have been working on getting the exp/html package to pass the
> parser test suite. There are only five failing tests left, so it probably
> won't be long till it passes.
I'd like to take this opportunity to thank Andy for all the work he's
done on exp/html. We wouldn't be anywhere near this close to passing
100% of the html5lib / webkit test suite without him.
> I'm not sure how much more work it will take
> after passing the tests before the package is taken out of exp, but it is
> quite usable right now—just no guarantee of API stability.
It is certainly usable right now. Moving out of exp would mean
freezing the API, and I don't think the API is quite right yet.
Specifically, html.Node is currently a struct type; I think it needs
to be an interface type so that programs can provide different
implementations according to their needs. For example, a simple
"scrape the links from this html file" would probably be happy with
the default node implementation. Someone trying to implement a
full-blown browser would probably need nodes to contain fields to
support layout and JavaScript access, but package (exp/)html shouldn't
have to mandate a particular css or javascript implementation.
There may be other performance-related API changes. The html.Attribute
type should probably use the exp/html/atom mechanism. Namespace
representation might also change.