2006-08-12 19:56:37 +00:00
|
|
|
|
|
|
|
Code Quality Issues
|
|
|
|
|
|
|
|
Okay, face it. Programmers can get lazy, cut corners, or make mistakes. They
|
|
|
|
also can do quick prototypes, and then forget to rewrite them later. Well,
|
|
|
|
while I can't list mistakes in here, I can list prototype-like segments
|
2006-11-12 19:26:49 +00:00
|
|
|
of code that should be aggressively refactored. This does not list
|
|
|
|
optimization issues, that needs to be done after intense profiling.
|
2006-08-12 19:56:37 +00:00
|
|
|
|
|
|
|
AttrDef
|
2006-09-17 21:53:12 +00:00
|
|
|
Class - doesn't support Unicode characters (fringe); uses regular
|
|
|
|
expressions
|
|
|
|
Lang - code duplication; premature optimization; doesn't consult official
|
|
|
|
lists (fringe)
|
|
|
|
Length - easily mistaken for CSSLength
|
2006-11-12 19:26:49 +00:00
|
|
|
URI - multiple regular expressions; missing validation for query,
|
|
|
|
fragment and path
|
2006-08-12 20:22:09 +00:00
|
|
|
CSS - parser doesn't accept advanced CSS (fringe)
|
2006-11-12 19:26:49 +00:00
|
|
|
Number - constructor interface inconsistent with Integer
|
2006-09-15 01:59:43 +00:00
|
|
|
Config - "load configuration" hooks missing, rich set* accessors missing
|
2006-09-17 21:53:12 +00:00
|
|
|
ConfigSchema - redefinition is a mess
|
2006-08-12 19:56:37 +00:00
|
|
|
Strategy
|
|
|
|
FixNesting - cannot bubble nodes out of structures
|
2006-08-25 03:01:16 +00:00
|
|
|
MakeWellFormed - insufficient automatic closing definitions (check HTML
|
2006-09-17 21:53:12 +00:00
|
|
|
spec for optional end tags, also, closing based on type (block/inline)
|
|
|
|
might be efficient).
|
2006-08-12 19:56:37 +00:00
|
|
|
RemoveForeignElements - should be run in parallel with MakeWellFormed
|
|
|
|
URIScheme - needs to have callable generic checks
|
2006-11-12 19:26:49 +00:00
|
|
|
mailto - doesn't validate emails, doesn't validate querystring
|
2006-08-12 19:56:37 +00:00
|
|
|
news - doesn't validate opaque path
|
|
|
|
nntp - doesn't constrain path
|
|
|
|
EOL
|
|
|
|
|