A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.mail-archive.com/html5lib-discuss@googlegroups.com/msg00267.html below:

Re: Custom Treebuilders (yet again)

On 24 Dec 2008, at 02:46, Aaron DeVore wrote:
> I wrote about this a while ago and didn't get an answer, so I'll give
> it another go.
>
> I'm working on an XML/HTML tree library that only has a tree and
> serializer, with parsing done by html5lib. To use html5lib for parsing
> I need to write a custom treebuilder. What is the best way to go about
> that? I can directly use html5lib.treebuilders._base but that looks
> risky in terms of forward compatibility.

Using html5lib.treebuilders._base is the way to do it (and ideally get  
it committed into html5lib, in which case it should hopefully be  
updated by whoever breaks the API). We have, however, tried to avoid  
breaking stuff (and mostly succeeded).


--
Geoffrey Sneddon
<http://gsnedders.com/>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"html5lib-discuss" group.
 To post to this group, send email to html5lib-discuss@googlegroups.com
 To unsubscribe from this group, send email to 
html5lib-discuss+unsubscr...@googlegroups.com
 For more options, visit this group at 
http://groups.google.com/group/html5lib-discuss?hl=en-GB
-~----------~----~----~----~------~----~------~--~---


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4