On Fri, Mar 28, 2003 at 01:36:50PM -0600, Lee Daniel Crocker wrote:
(Nick Reinking nick@twoevils.org):
<SCRIPT TYPE="text/javascript"> (capitalization suckiness) <a href="....." class='internal'> (mixed quotes) #quickbar a.new { color: CC2200; ) (invalid, but possibly parsed) <table width='98%'> border=0 cellspacing=0> (mixed/missing quotes) Can we just settle upon lowercase tags and double quotes around all attributes?
I did settle on lowercase tags--somebody else added that SCRIPT, which I'd love to remove as soon as I figure out what it's there for. Quotes are trickier: I can't just change them all unilaterally because they are chosen based on the possible values of the attribute: i.e., those that might possibly contain single quotes are put in doubles, and vice versa. Though admittedly, some of them are just chosen to make the PHP code easier (i.e., when HTML is part of a PHP string, single quotes are used just because it's easier to read "='internal'" than "="internal"".
A future version of the software will produce a DOM for each page rather than straight HTML, and then a module will produce various outputs from the DOM. That's a ways off.
Oh, and one other thing. It seems to me that it could be good to shorten the name of some of the styles. I mean, it may seem silly to shorten 'internal' to 'int' and 'external' to 'ext', but hear me out. Say, these appear 20 times on the average page (probably low, they appear 55 times on Rabbit.)
Average monthly bandwith usage: 20 * 5 * 200000 * 30 / 1048576 = ~ 572.2MB/month
20 = average appearances of 'internal' and 'external' 5 = character difference (5 bytes) 200000 = hits/day 30 = days in a month 1048576 = bytes in a MB