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/msg00028.html below:

Minor html5lib refactoring

A whole bunch of changes I would like to see done / plan to do...

Now that we have a html5 serializer, I'd like to change the default 
output of the debug tool parse.(py|rb) to be html.  There will continue 
to be an option to produce a debug parse tree (as well as x(ht)ml, but 
those won't be the default.
Most of the serializer options (quote_attr_values, use_trailing_solidus, 
etc) will become options of the debug parse tool.  They will be 
meaningless if you choose anything other than html output, but such is 
life.  The only option default I am really tempted to flip for the 
purpose of the debug tool is omit_optional_tags.

I'd like to repackage the sanitizer, highlighter, and serializer filters 
(like the optional tag filter) as standalone filters.  These could be 
used independent of the builder or serializer used.  Each filter can 
become an option of parse.

I'd like to remove the following: the serializer example, and all the 
hiliter and testSerializer methods from the builders.  The walker tests 
cover the same function (and better).

I'd like the input stream to actually stream for the common use cases of 
windows-1252 or utf-8 input.

If anybody has any concerns about any of these changes, please speak up!

- Sam Ruby

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
 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