On 29 mar, 09:09, "Thomas Broyer" wrote:
> So maybe it's worth dropping the innerHTML argument from parse()
> and adding a parseFragment(container, stream, encoding=None);
> also adding a getFragment() to TreeBuilder to return either the
> <html> element or a DocumentFragment (already exists in
> xml.dom.minidom even if not documented; easy to add to
> ElementTree, not talking about simpletree ;-) )

I've followed this path and it seems to just work.

See patch and sample code in issue #18
http://code.google.com/p/html5lib/issues/detail?id=18


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

  • innerHTML Thomas Broyer
    • Re: innerHTML Thomas Broyer

Reply via email to