W3C home > Mailing lists > Public > public-test-infra@w3.org > April to June 2013

RE: Spec parser

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>
Message-ID: <3E5EB1C522558B4395FB39A50C14EFCE234DC3D3@EXCHANGE.cablelabs.com>
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 <t.hayakawa@cablelabs.com>
Received on Friday, 7 June 2013 06:41:03 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:34:08 UTC