- From: Takashi Hayakawa <T.Hayakawa@CableLabs.com>
- Date: Fri, 7 Jun 2013 04:26:16 +0000
- To: Peter Linss <peter.linss@hp.com>
- CC: Tobie Langel <tobie@w3.org>, public-test-infra <public-test-infra@w3.org>, ext Robin Berjon <robin@w3.org>
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. --tak -- Takashi Hayakawa <t.hayakawa@cablelabs.com> CableLabs
Received on Friday, 7 June 2013 06:41:03 UTC