RE: Spec parser

Peter Linss wrote:
> You can either modify the _parseData method in your local copy or subclass the parser and override that method. Either way, replace the line:
>             tree = self.mParser.parse(StringReader(data), encoding = encoding)  # XXX remove stringreader when upgrade to html5lib 1.0
> with:
>             tree = self.mParser.parse(data, encoding = encoding)
> The root section should indeed have a list of the top level sections and the anchors present at the root level. You can then traverse the section tree to find the sub-sections.

Thanks Peter.  With that fix the elements started coming through.  I'll
taste them tomorrow.


Takashi Hayakawa <>

Received on Friday, 7 June 2013 06:41:03 UTC