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

Suggested refactoring of parser errors

I've discussed this idea with Sam and Ryan and wanted to bring it to
the whole group.  I'd like to contribute some work on the validation
side of html5parser, for example teaching it which attributes are
allowed/required in which elements.  This will involve defining
several new error codes, which brings up another point: I'd like to
refactor the parserError logic to use constants (probably defined in
constants.py/.rb) instead of error strings.  We did this for the feed
validator a few years back and it worked out very well; it allows you
to easily reference the error codes from test cases, and we also used
the error code strings to construct help links to documentation pages.
Any objections to refactoring error codes or adding additional
validation logic and tests?

-Mark


--~--~---------~--~----~------------~-------~--~----~
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