Doctype html public "-//W3C//DTD HTML 4.01 Pointy-haired-boss-//EN(nearly)"



  • Today I have to deal with this:

    <html>
    
    <head>
    <link ... >
    <meta ... >
    <meta ... >
    <META ... >
    <TITLE>...</title>
    <meta ... >
    <SCRIPT>...</SCRIPT>
    
    <script ... ></script>
    
    <head>
    <meta ... >
    <meta ... >
    <title>...</title>
    
    <body ... >
    <table>
      <tr>
        <td>
    <table>
      <tr>
        <td>
          <tr>
            <td>
            ...</td>
          </tr>
        </table>
        </td>
        </tr>
        ...
        </table>
    <table>
        <tr>
    <script src=... ></script>
    <SCRIPT>
    ...
    ...
    ...
    </SCRIPT>
    <style>
    ...
    ...
    </style>
    <body onload=... ... ... ... ... ... ...>
    
    <table>
    

    From then on there's no more opening or closing head or body tags, just lots of nested and poorly indented tables. We finish on a closing table tag, hard to tell if it's inner or outer. There's also a huge huge onload string. I'm thinking of running it through a html tidier just to get it indented nicely.



  • Who produced this mess? If its a merge from different applications, then I have seen similar.

    But if its created by hand, I'd like to know the name of this guy, he is a true genius. He gives a new dimension to html: ART.

    Would love to see an html painting from him on my wall.



  • I was just cleaning up some html yesterday in which, for example, the original author did not know about the <hr /> tag.  Instead, the author chose to use a bunch of underscores.  Fun times.



  • Your post makes baby DOM parser cry.



  • Two <head>s are better than one.

    Someone had to say it.



  • @VGR said:

    Two <head>s are better than one.

    Someone had to say it.

    Two bodies as well, it seems.



  • Now everone sing along to number 42 from our hymnal...

    "One <head>, one <body>, one <html>...
    One cup of Java which we code...
    And we, though many, throughout the earth...
    We are united in this one Web..."



  • @Volmarias said:

    @VGR said:

    Two <head>s are better than one.

    Someone had to say it.

    Two bodies as well, it seems.

    I read somewhere that early versions of Netscape allowed you to have multiple body tags with different bgcolors, and would produce an animated effect as they rendered each one. (I don't remember seeing this, I just remember reading it.)



  • @ekolis said:

    "One <head>, one <body>, one <html>...
    One cup of Java which we code...
    And we, though many, throughout the earth...
    We are united in this one Web..."

    Fantastic....I'm sure the Church of the Flying Spaghetti Monster</FONT> could use this as a start for their hymnal.



  •  Sadly it's not handmade. I'm guessing it started out as a half-decent example of using server side includes to do the header and navigation parts of pages on a site, corrupted by 5 years of them being edited in frontpage.



  •  @ComputerForumUser said:

    corrupted by 5 years of them being edited in frontpage.

    Any of you ever had to deal with someone who didn't know pages could be dynamically generated? One client would save a copy of pages they wanted changes made to (.php, .asp, .shtml, whatever...), make the changes, and send them back to be put on the server. Never mind the page that most of the pages on the site had about 10 lines of content that was in the actual page file, and the rest of the boilerplate was inserted server-side dynamically.

    "What do you mean,  it'll take you an hour to clean up the file? Just make it live!"


Log in to reply