BB Unix Network Monitor - Message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: {bb} HTML table formatting



> BTW, which version of BB are you running ?
[Andrew Dalgleish]  
1.2b

> line 37 column 1 - Warning: <td> proprietary attribute value
> "ABSMIDDLE"
> Boy, IE 5.0 would probably die over this :)  Fixed to MIDDLE
[Andrew Dalgleish]  
IE 3,4,5 handle it ok, but I was wondering what the implications of
changing it would be.


> line 336 column 1 - Warning: trimming empty <table>
> Will have to look into this one...
[Andrew Dalgleish]  
I've got a patch to fix the empty table (for both dialup & summary).
If you wan't I'll send it along.
You need to test whether the table is needed outside their respective
loops.
Unless someone knows how to pass an env var back outside a "cat foo |
while read line" loop?



> line 53 column 16 - Warning: missing </h4> before <pre>
> line 53 column 16 - Warning: trimming empty <h4>
> same problem as code, but you can't make <pre> text as header
[Andrew Dalgleish]  
I changed <H4> to <FONT SIZE="+1">...</FONT>
Using <Hn> headers makes lynx insert a newline, which makes a mess of
column headings.


> BTW, 'tidy' can be used to fix your pages, use it on you co-worker's
> HTML output and then fix his errors ;)
> Take a look at: http://www.w3.org/People/Raggett/tidy/
[Andrew Dalgleish]  
I already had. :-)


> Error at line 54:
>    (truncated)d.gif" ALT="red" HEIGHT=12 WIDTH=12> / (49%) has reached
> the
>              document type does not allow  element "IMG" here
>    Humm, It really doesn't like the <IMG SRC> tag within a <PRE></PRE>
>    I don't know if this is legal
>    This is found in the .disk/.procs output where colored dots appear
> 	with the text
[Andrew Dalgleish]  
I patched bbd.c to add <PRE>...</PRE> to each line, and only if the line
does not contain a "<".
I know, it's ugly.


> Error at line 68:
>    (truncated)GE SRC="../gifs/buthist.gif" ALT="History"
> BORDER=0><INPUT
> TYPE=HIDDEN
>                              there is no attribute "BORDER" 
> (explanation...)
>    Didn't know you couldn't have a BORDER tag when specifying an IMAGE
> 	as INPUT TYPE.  I'll remove it... nope.  Netscape actually uses
> it and
> 	the border around the "HISTORY" button looks ugly so it stays.
> Don't
> know
> 	what IE thinks but I don't care
[Andrew Dalgleish]  
I changed the ALT="" to NAME="".
I'm still thinking about the BORDER attribute - there has to be a way.


To make non-visual browsers happy I used <CAPTION> and <TH> instead of
<TD> like this:
<TABLE BORDER=1><CAPTION>Foo Bar</CAPTION>
<TR><TH>foo</TH><TH>bar</TH></TR>
<TR><TD>hum</TD><TD>bug</TD></TR>
</TABLE>

The problem is that the floating CAPTIONS look ugly, but then I noticed
the nested summary tables.
<TABLE BORDER=1><TR><TD>
... insert main table here ...
</TD></TR></TABLE>
The borders look a little busy, but not too bad.

This actually passes the accessibility test at
http://www.cast.org/bobby/
(OK, with quite a few warnings :-)

A side benefit - you don't need to count the columns to use COLSPAN, so
the scripts are actually shorter (& simpler).




> Now, will all this make your HawaIE 50 friend happy ?  Would he get as
> a quick reponse from his friends in Redmond as you got here ? And
> actually,
> get a fix ? ;)
[Andrew Dalgleish]  
No, now he will be really annoyed that a few lines of shell script can
do *much* better than his multi-megabyte nuclear powered waffle iron.
:-)
Cool, huh?

Cheers




-
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index