IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New #$&@#$ IE
Discovered something annoying and interesting today while going over some HTML to work out small display problems, mostly small differences between Firefox/Mozilla and IE. IE actually displays the following two rows differently. The first gets a pixel or two empty space below the image.

\n<tr>\n  <td class="layoutCell">\n    <img src="images/welcome_banner.jpg">\n  </td>\n</tr>\n<tr>\n  <td class="layoutCell"><img src="images/welcome_banner.jpg"></td>\n</tr>\n


I'm not sure if this is a violation of HTML standards or not, but it is stupid behavior. If I wanted space below the image, I would put a break in there.

Jay
New White space should have been trimmed
Well, in IE, only the first two have no padding. In Firefox, the last one has padding on the top.

\n<table border='1' cellspacing='0' cellpadding='0'>\n   <tr><td><img src='http://z.iwethey.org/forums/images/lrpd.gif'></td></tr>\n   <tr><td> <img src='http://z.iwethey.org/forums/images/lrpd.gif'></td></tr>\n   <tr><td><img src='http://z.iwethey.org/forums/images/lrpd.gif'> </td></tr>\n   <tr><td> <img src='http://z.iwethey.org/forums/images/lrpd.gif'> </td></tr>\n   <tr><td>\n      <img src='http://z.iwethey.org/forums/images/lrpd.gif'>\n   </td></tr>\n</table>\n


[image|http://z.iwethey.org/forums/images/lrpd.gif||||]
[image|http://z.iwethey.org/forums/images/lrpd.gif||||]
[image|http://z.iwethey.org/forums/images/lrpd.gif||||]
[image|http://z.iwethey.org/forums/images/lrpd.gif||||]

[image|http://z.iwethey.org/forums/images/lrpd.gif||||]

New Scratch that comment about Firefox.
That space was just a function of the way zIWETHEY inserts line breaks. The comments about IE though are still applicable.
New IE is wrong
[link|http://www.w3.org/TR/html401/appendix/notes.html#notes-line-breaks|W3.org]
SGML (see [ISO8879], section 7.6.1) specifies that a line break immediately following a start tag must be ignored, as must a line break immediately before an end tag. This applies to all HTML elements without exception.

The HTML standard is actually a bit uncertain about what should be done with spaces in this case, but it clearly states that a line break both after a tag start and before a tag end must be dropped.

Just another one of those annoying little inconsistencies to work around.

Jay
New Firefox beats Internet Explorer...
...in all the [link|http://www.bbspot.com/News/2005/01/firefox_vs_internet_explorer.html|important matters].
New I'm convinced!
New you had me at hello.
If you push something hard enough, it will fall over. Fudd's First Law of Opposition

[link|mailto:bepatient@aol.com|BePatient]
New You have whitespace in the first version
Don't necessarily know how browsers will handle that-all, but enters in source code are the same as spaces -- as far as HTML goes.

How does IE display the following:

<tr>\n  <td class="layoutCell"> <img src="images/welcome_banner.jpg"> </td>\n</tr>


I bet it's the same as the first (with the CR's.)
-YendorMike

"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."
- Benjamin Franklin, 1759 Historical Review of Pennsylvania
New What do you have for a DOCTYPE declaration on that page?
And if it's XHTML, are you using an XML prolog before it?
--
You cooin' with my bird?
[link|http://www.shtuff.us/|http://www.shtuff.us/]
New HTML 4.01 transitional / loose
Not the most update to date stuff, but I'm working with an exsiting code base.

It's also littered with tables on the kind of scale to frighten anybody that looks at the source.

Jay
New Re: HTML 4.01 transitional / loose

Got a link?

--\r\nYou cooin' with my bird?
\r\n[link|http://www.shtuff.us/|shtuff]
New Not yet, it's still in testing
     #$&@#$ IE - (JayMehaffey) - (11)
         White space should have been trimmed - (ChrisR) - (5)
             Scratch that comment about Firefox. - (ChrisR)
             IE is wrong - (JayMehaffey) - (3)
                 Firefox beats Internet Explorer... - (ChrisR) - (2)
                     I'm convinced! -NT - (Another Scott)
                     you had me at hello. -NT - (bepatient)
         You have whitespace in the first version - (Yendor)
         What do you have for a DOCTYPE declaration on that page? - (ubernostrum) - (3)
             HTML 4.01 transitional / loose - (JayMehaffey) - (2)
                 Re: HTML 4.01 transitional / loose - (ubernostrum) - (1)
                     Not yet, it's still in testing -NT - (JayMehaffey)

[E.T. finally dies... general clapping and hurrahs]
114 ms