HTML bug intended page actual page target html
HTML bug … • intended page • actual page! target. html error 1. html
lots of code! <html> <head> <title>error test</title> </head> <body bgcolor="#FFFFFF" text="#000000"> <p>Page Heading</p> <table border="2” bordercolor="#FF 0000 " cellspacing="0" cellpadding="12"> <tr> <td>A</td> <td>B </td> </tr> <td>C</td> <td>D <table border="2” bordercolor="#000099 " cellspacing="0" cellpadding="12"> <tr> <td>Da</td> <td>Db</td> </tr> <td>Dc</td> <td>Dd</td> </tr> </tabel> </td> </tr> <td>E</td> <td>F</td> </tr> <td>G <table border="2” bordercolor="#000099 " cellspacing="0" cellpadding="12"> <tr> <td>Ga</td> <td>Gb</td> </tr> </table> </td> <td>H</td> </tr> </table> <p>More text after the table</p> </body> </html> error 1. html
remove early bits <html> <head> <title>error test</title> </head> <body bgcolor="#FFFFFF" text="#000000"> <p>Page Heading</p> <table border="2" bordercolor="#FF 0000" …. <tr> <td>A</td> <td>B </td> </tr> <td>C</td> <td>D <table border="2" cellspacing="0" … leave <table> tag need syntactically correct unit
doesn’t help <html> <head> <title>error test</title> </head> <body bgcolor="#FFFFFF" text="#000000"> <table border="2" bordercolor="#FF 0000" …. <tr> <td>C</td> <td>D <table border="2" bordercolor= … <tr> <td>Da</td> <td>Db</td> </tr> <tr> error 2. html
and a bit more … ……… <table border="2" bordercolor="#FF 0000" …. <tr> <td>C</td> <td>D <table border="2" bordercolor= … <tr> <td>Da</td> <td>Db</td> </tr> ……… </tabel> </td> </tr> <td>E</td> ……… error 2. html
now it works ……… <table border="2" bordercolor="#FF 0000" …. <tr> <td>E</td> <td>F</td> </tr> <td>G <table border="2" bordercolor= … <tr> <td>Ga</td> <td>Gb</td> </tr> </table> </td> <td>H</td> ……… ok 1. html
put it back <html> <head> <title>error test</title> </head> <body bgcolor="#FFFFFF" text="#000000"> <table border="2" bordercolor="#FF 0000" …. <tr> <td>C</td> <td>D <table border="2" bordercolor= … <tr> <td>Da</td> <td>Db</td> </tr> <tr> error 2. html
now remove end bit ……… <td>F</td> </tr> <td>G <table border="2" bordercolor= … ……… </td> <td>H</td> </tr> </table> <p>More text after the table</p> </body> </html> error 2. html
getting closer … ……… </tr> <td>Dc</td> <td>Dd</td> </tr> </tabel> </td> </tr> <td>E</td> <td>F</td> </tr> </table> </body> </html> error 3. html
what next? if we remove the EF row won’t be able to see if it is OK or not but could remove EF and add line after end of table error 3. html
try it ……… <tr> <td>Dc</td> <td>Dd</td> </tr> </tabel> </td> remove EF and add </tr> line after end of table <tr> <td>E</td> <td>F</td> add line after </tr> end of table </table> …. new line here … </body> </html> error 3. html
very close now ……… <tr> <td>Da</td> <td>Db</td> </tr> <td>Dc</td> <td>Dd</td> </tr> </tabel> </td> </tr> </table> <p>More text after the table </p> </body> </html> error 4. html
simplify inner table ……… <table border="2" bordercolor= … <tr> <td>Da</td> <td>Db</td> </tr> <td>Dc</td> <td>Dd</td> </tr> </tabel> </td> </tr> </table> <p>More text after the table </p> ……… error 4. html
still fails ……… <table border="2" bordercolor="#FF 0000" … <tr> <td>C</td> <td>D <table border="2" bordercolor= … <tr> <td>Da</td> </tr> </tabel> </td> </tr> </table> <p>More text after the table </p> ……… error 5. html
remove inner table completely ……… <table border="2" bordercolor="#FF 0000" … <tr> <td>C</td> <td>D <table border="2" bordercolor= … <tr> <td>Da</td> </tr> </tabel> </td> </tr> </table> <p>More text after the table </p> ……… error 5. html
it works again! <html> <head> <title>OK document</title> </head> <body bgcolor="#FFFFFF" text="#000000"> <table border="2" bordercolor="#FF 0000" … <tr> <td>C</td> <td>D </td> </tr> </table> <p>More text after the table</p> </body> </html> ok 2. html
let’s look at that inner table ……… <table border="2" bordercolor="#FF 0000" … <tr> <td>C</td> <td>D <table border="2" bordercolor= … <tr> <td>Da</td> OOPS! </tr> </tabel> </td> </tr> </table> <p>More text after the table </p> ……… error 5. html
fix it ……… <table border="2" bordercolor="#FF 0000" … <tr> <td>C</td> <td>D <table border="2" bordercolor= … <tr> <td>Da</td> </tr> </table> <p>More text after the table </p> ……… ok 3. html
now fix original file ……… <td>Dc</td> <td>Dd</td> </tr> </table> </td> </tr> <td>E</td> <td>F</td> </tr> <td>G <table border="2” bordercolor= … <tr> <td>Ga</td> <td>Gb</td> ……… target. html
- Slides: 19