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.
As far as I can tell, you should go about implementing the treebuilder like any of the Python treebuilders are implemented. Which means using _base. html5lib is still young, so in my opinion any forwards compatibility is illusory. Cheers, Edward --~--~---------~--~----~------------~-------~--~----~ 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