2007/6/14, Sam Ruby: > > While I believe that well-formedness is valuable to many, it is not > without cost, and I don't believe that those for whom well-formedness is > a requirement should have to bear that cost. > > In concrete terms, I have been looking at the filters that you have been > creating, and they are more complex than the ones on the trunk.
I'm in the process of abandoning the branch, for various reasons: - I've not had time to work on it for a few days and have lost interest into it - as you said, it makes things like filters more complex - the optional tag handling would probably need a treewalker-to-stream-of-tokens adaptor or it would be very hard to port Let's get pragmatic and "tant pis" if "non well-formed" streams of tokens can be passed to the serializer (it's up to you to plug in a "lint" filter if you don't trust your source). > But as I said, I am watching your branch with interest. I've committed > a test (to the trunk) that I would appreciate seeing how it could be > handled in the branch. In essence, I've testing for two requirements: > > 1) if a meta charset tag exists, replace the encoding, but leave the > tag where it is. > 2) if no meta charset tag exists, add one at the beginning of the head > > For purposes of this test, let's assume that a head element exists in > the stream, the stream is well formed, and that re-ordering elements in > the head isn't a good idea. I've added support for <meta http-equiv=Content-Type content="..."> in the Python version (I'm sorry but I still don't speak Ruby). I also added a test where the <head> contained two <meta charset=...> (at least the first one needs rewriting; the Python code rewrites both). -- Thomas Broyer --~--~---------~--~----~------------~-------~--~----~ 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