I've been useing Firefox to write some code with a lot of css. When I got the page looking like I wanted, I looked at it with IE.
As I expected the page looked all screwed up, but not because of the css. It seems Firefox was fixing my bad html.
here's my code as you can see I have to many quotes
for c = 0 to CellCnt
Response.Write " <td"
if c <> 1 then Response.Write " class=""npcenter"""
Response.Write """><font size=""" & strDefaultFontSize & """>" & CellArry(i,c) & "</font></td>" & vbNewLine
next
here's the output in IE. Had my table all screwed-up :)
<tr>
<td class="npcenter""><font size="2"><a href="pools.asp?poolid=1"><img src="icon_folder_hot.gif" width="15" height="17" border="0" alt="Pool is Full _ View Numbers" title="Pool is Full _ View Numbers" hspace="0" /></a></font></td>
<td"><font size="2"> <a href="pools.asp?poolid=1">Anaheim Angels @ Cleveland Indians</a></font></td>
<td class="npcenter""><font size="2"><span class="spnMessageText"><a href="pop_profile.asp?mode=display&id=1" title="View orazzib's Profile" onMouseOver="(window.status='View orazzib\'s Profile'); return true" onMouseOut="(window.status=''); return true">orazzib</a></span></font></td>
<td class="npcenter""><font size="2">This Pool is Filled <font size="1">(25 Squares)</font></font></td>
<td class="npcenter""><font size="2"><font size="1">08 February 2006<br /> 12:41:19</font></font></td>
<td class="npcenter""><font size="2"><font size="1">01 March 2006<br /> 07:00:00</font></font></td>
</tr>
And in Firefox. Extra quote gone.
<tr>
<td class="npcenter"><font size="2"><a href="pools.asp?poolid=1"><img src="icon_folder_hot.gif" width="15" height="17" border="0" alt="Pool is Full _ View Numbers" title="Pool is Full _ View Numbers" hspace="0" /></a></font></td>
<td><font size="2"> <a href="pools.asp?poolid=1">Anaheim Angels @ Cleveland Indians</a></font></td>
<td class="npcenter"><font size="2"><span class="spnMessageText"><a href="pop_profile.asp?mode=display&id=1" title="View orazzib's Profile" onMouseOver="(window.status='View orazzib\'s Profile'); return true" onMouseOut="(window.status=''); return true">orazzib</a></span></font></td>
<td class="npcenter"><font size="2">This Pool is Filled <font size="1">(25 Squares)</font></font></td>
<td class="npcenter"><font size="2"><font size="1">08 February 2006<br /> 12:41:19</font></font></td>
<td class="npcenter"><font size="2"><font size="1">01 March 2006<br /> 07:00:00</font></font></td>
</tr>
And another one with some missing code
for iCol = 0 to cellCnt
Response.Write " <td class="
if thisSquare(iRow,iCol) then
if isForm then
Response.Write """opencell"""
else
Response.Write """closecell"""
end if
else
Response.Write """closecell"""
end if
Response.Write "Missing a > here<font size=""" & strDefaultFontSize & """>"
if thisSquare(iRow,iCol) = true then
Response.Write thisMember(iRow,iCol)
else
Response.Write "Pick<input type=""checkbox"" name=""entryid"" value=""'" & iRow & iCol & "'"" /><br /><br /><a href=""post_entry.asp""><font size=""" & strFooterFontSize & """>sponsor<br />this square</font></a>"
end if
Response.Write "</font></td>" & vbNewLine
next
I get this in IE - incomplete tag , like it should be
<tr>
<td class="tdsquare vteam"><font size="2">8 / 1</font></td>
<td class="closecell"<font size="2">zypher</font></td>
<td class="closecell"<font size="2">cripto9t</font></td>
<td class="closecell"<font size="2">orazzib</font></td>
<td class="closecell"<font size="2">zypher</font></td>
<td class="closecell"<font size="2">cripto9t</font></td>
</tr>
And in Firefox again the code has been repaired
<tr>
<td class="tdsquare vteam"><font size="2">8 / 1</font></td>
<td class="closecell"><font size="2">zypher</font></td>
<td class="closecell"><font size="2">cripto9t</font></td>
<td class="closecell"><font size="2">orazzib</font></td>
<td class="closecell"><font size="2">zypher</font></td>
<td class="closecell"><font size="2">cripto9t</font></td>
</tr>
Does anyone know anything about this? I don't really like this. I spent a lot of time checking out the output in Firefox, while I was
building this page, to make sure the html was correct. Now it seems I have to go through it again to see what Firefox didn't show me :(
Maybe theres away to turn it off?