1 / 19

HTML bug …

intended page. actual page!. . error1.html. HTML bug …. . target.html. lots of code!. . <html> <head> <title>error test</title> </head> <body bgcolor="#FFFFFF" text="#000000"> <p>Page Heading</p> <table border="2” bordercolor="#FF0000 " cellspacing="0" cellpadding="12"> <tr>

Télécharger la présentation

HTML bug …

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. intended page actual page!  error1.html HTML bug …  target.html

  2. lots of code!  • <html> • <head> • <title>error test</title> • </head> • <body bgcolor="#FFFFFF" text="#000000"> • <p>Page Heading</p> • <table border="2” bordercolor="#FF0000 " cellspacing="0" cellpadding="12"> • <tr> • <td>A</td> • <td>B </td> • </tr> • <tr> • <td>C</td> • <td>D • <table border="2” bordercolor="#000099 " cellspacing="0" cellpadding="12"> • <tr> • <td>Da</td> • <td>Db</td> • </tr> • <tr> • <td>Dc</td> • <td>Dd</td> • </tr> • </tabel> • </td> • </tr> • <tr> • <td>E</td> • <td>F</td> • </tr> • <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> error1.html

  3. remove early bits • <html> • <head> • <title>error test</title> • </head> • <body bgcolor="#FFFFFF" text="#000000"> • <p>Page Heading</p> • <table border="2" bordercolor="#FF0000" …. • <tr> • <td>A</td> • <td>B </td> • </tr> • <tr> • <td>C</td> • <td>D • <table border="2" cellspacing="0" … leave <table> tagneed syntactically correct unit

  4. error2.html doesn’t help • <html> • <head> • <title>error test</title> • </head> • <body bgcolor="#FFFFFF" text="#000000"> • <table border="2" bordercolor="#FF0000" …. • <tr> • <td>C</td> • <td>D • <table border="2" bordercolor= … • <tr> • <td>Da</td> • <td>Db</td> • </tr> • <tr>

  5. and a bit more … • … … … • <table border="2" bordercolor="#FF0000" …. • <tr> • <td>C</td> • <td>D • <table border="2" bordercolor=… • <tr> • <td>Da</td> • <td>Db</td> • </tr> • … … … • </tabel> • </td> • </tr> • <tr> • <td>E</td> • … … … error2.html

  6. now it works  • … … … • <table border="2" bordercolor="#FF0000" …. • <tr> • <td>E</td> • <td>F</td> • </tr> • <tr> • <td>G • <table border="2" bordercolor= … • <tr> • <td>Ga</td> • <td>Gb</td> • </tr> • </table> • </td> • <td>H</td> • … … … ok1.html

  7. put it back  • <html> • <head> • <title>error test</title> • </head> • <body bgcolor="#FFFFFF" text="#000000"> • <table border="2" bordercolor="#FF0000" …. • <tr> • <td>C</td> • <td>D • <table border="2" bordercolor= … • <tr> • <td>Da</td> • <td>Db</td> • </tr> • <tr> error2.html

  8. now remove end bit • … … … • <td>F</td> • </tr> • <tr> • <td>G • <table border="2" bordercolor=… • … … … • </td> • <td>H</td> • </tr> • </table> • <p>More text after the table</p> • </body> • </html> error2.html

  9. getting closer …  • … … … • </tr> • <tr> • <td>Dc</td> • <td>Dd</td> • </tr> • </tabel> • </td> • </tr> • <tr> • <td>E</td> • <td>F</td> • </tr> • </table> • </body> • </html> error3.html

  10. 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 error3.html

  11. try it  • … … … • <tr> • <td>Dc</td> • <td>Dd</td> • </tr> • </tabel> • </td> • </tr> • <tr> • <td>E</td> • <td>F</td> • </tr> • </table> • …. new line here … • </body> • </html> remove EF and add line after end of table add line afterend of table error3.html

  12. error4.html very close now • … … … • <tr> • <td>Da</td> • <td>Db</td> • </tr> • <tr> • <td>Dc</td> • <td>Dd</td> • </tr> • </tabel> • </td> • </tr> • </table> • <p>More text after the table </p> • </body> • </html>

  13. simplify inner table  • … … … • <table border="2" bordercolor= … • <tr> • <td>Da</td> • <td>Db</td> • </tr> • <tr> • <td>Dc</td> • <td>Dd</td> • </tr> • </tabel> • </td> • </tr> • </table> • <p>More text after the table </p> • … … … error4.html

  14. still fails  • … … … • <table border="2" bordercolor="#FF0000" … • <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> • … … … error5.html

  15. remove inner table completely  • … … … • <table border="2" bordercolor="#FF0000" … • <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> • … … … error5.html

  16. it works again! <html> <head> <title>OK document</title> </head> <body bgcolor="#FFFFFF" text="#000000"> <table border="2" bordercolor="#FF0000" … <tr> <td>C</td> <td>D </td> </tr> </table> <p>More text after the table</p> </body> </html>  ok2.html

  17. OOPS! let’s look at that inner table  • … … … • <table border="2" bordercolor="#FF0000" … • <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> • … … … error5.html

  18. ok3.html fix it • … … … • <table border="2" bordercolor="#FF0000" … • <tr> • <td>C</td> • <td>D • <table border="2" bordercolor= … • <tr> • <td>Da</td> • </tr> • </table> • </td> • </tr> • </table> • <p>More text after the table </p> • … … …

  19. target.html now fix original file • … … … • <td>Dc</td> • <td>Dd</td> • </tr> • </table> • </td> • </tr> • <tr> • <td>E</td> • <td>F</td> • </tr> • <tr> • <td>G • <table border="2” bordercolor= … • <tr> • <td>Ga</td> • <td>Gb</td> • … … …

More Related