If I've told you once, I've told you a thousand times!



  • I'm sure all know generated HTML is rarely something to be proud of. Sometimes, though, it's worse than others. This particular bit just seemed a bit... insistent. Here's a screenshot from 'vi' running in a session of PuTTY:

    Worst HTML ever!

    There were several more screens' worth of this.

     



  • what are you complaining about?  that looks really pretty!

     </sarcasm>
     



  • Am I disturbed for thinking that picture would make a good logo or background?



  • Look at it from a few meters away - it's the national flag of WTFistan. ^^.



  • [quote user="Cap'n Steve"]Am I disturbed for thinking that picture would make a good logo or background?[/quote]

    insert bad joke regarding cameras and wooden tables 



  • [quote user="Cap'n Steve"]Am I disturbed for thinking that picture would make a good logo or background?[/quote]

    Actually, I agree.

    Hey, fennec -- think you can take a screen of that at 1280x1024 and post it here?

     



  • The question is, were all those font tags closed properly?



  • This tiles:



    Image Hosted by ImageShack.us



  • I've needed new wallpaper for some time now. Thank you.



  • [quote user="Irrelevant"]This tiles:

    [/quote]

    Ooh, nice. :) 



  • The real wtf is that this person put quotations around the size attribute value. Don't they know that it is optional and that they could of saved lots of bandwidth.

    Arg these people make me mad :(



  • [quote user="barfoo"]The question is, were all those font tags closed properly?

    [/quote]

    Actually, yes. 'tidy' tells me:

    [quote user="tidy"]

    line 1 column 1 - Warning: missing <!DOCTYPE> declaration
    line 1 column 350251 - Warning: unescaped & which should be written as &amp;
    line 1 column 245 - Warning: <table> lacks "summary" attribute
    line 1 column 11484 - Warning: trimming empty <font>
    line 1 column 58672 - Warning: trimming empty <font>
    line 1 column 114893 - Warning: trimming empty <u>
    line 1 column 125093 - Warning: trimming empty <font>
    .....
    line 1 column 361599 - Warning: trimming empty <font>
    Info: Document content looks like HTML 4.01 Transitional
    192 warnings, 0 errors were found!
    [/quote]

    <font> 
    I've gone into my versioning system and found [url=http://random.fennecfoxen.org/screenshots/wtf.html]the original code[/url]. Note for added WTFiness, it's all on one line. (To be fair, it used to be all on many lines, but they were using LF line terminators and some time before I got to the file, those had been replaced - silly Macs, anyway :P). The modified file [url=http://eh.net/XIIICongress/schedule_titles.html]is here for comparison[/url]; only 21 kilobytes, to the original's 356 kilobytes. You may note the font is no longer Arial, Helvitica, or even sans-serif.</font> I is a lazy searcher-and-replacer sometimes, and have more important (if less graphically compelling) WTFs to unWTF.


  • Winner of the 2016 Presidential Election

    Love the tiling wallpaper.



  • [quote user="fennec"]

    <font>
    I've gone into my versioning system and found [url=http://random.fennecfoxen.org/screenshots/wtf.html]the original code[/url]. Note for added WTFiness, it's all on one line. (To be fair, it used to be all on many lines, but they were using LF line terminators and some time before I got to the file, those had been replaced - silly Macs, anyway :P). The modified file [url=http://eh.net/XIIICongress/schedule_titles.html]is here for comparison[/url]; only 21 kilobytes, to the original's 356 kilobytes. You may note the font is no longer Arial, Helvitica, or even sans-serif.</font> I is a lazy searcher-and-replacer sometimes, and have more important (if less graphically compelling) WTFs to unWTF.

    [/quote]

     wtf firefox chrashed while viewing the source code of that page :(
     



  • Dee-lish.

    Reminds me of the crappy code in our authoring system at work. There's a plugin from '96 that we use to turn rich text (from a win32 client) into HTML. It ejaculates font tags into the stream, so many that "Hello world" ends up being about 200 bytes worth of tag markup.



  • Um, I've just looked at the source of the modified file you gave, seems like those font-tags are multiplying again.

     

    Broken regex? 



  • Wow. I just applied the tiled one as my wallpaper on my triple screen setup (3840x1024) and it is making me dizzy. WTF



  • [quote user="MasterPlanSoftware"]Wow. I just applied the tiled one
    as my wallpaper on my triple screen setup (3840x1024) and it is making
    me dizzy. WTF[/quote]

    LOL. I applied it to my dual screen setup (2560x1024),
    turned off desktop icons, minimized everything, and called a co-worker
    in yesterday evening. He asked what was I trying to do to him and he
    about hit the whiteboard. He said it reminded him of those images that
    made it look like it was spinning, but is really static.



  • You're making me jealous of your nice display setups. O_o



  • @DustinMichaels said:

    The real wtf is that this person put quotations around the size attribute value. Don't they know that it is optional and that they could of saved lots of bandwidth.

    Arg these people make me mad :(

    Despite the obvious sarcasm, I feel the need to remind people that they're not actually optional, not even in HTML.



  • Quotes around numeric attribute values are not mandatory in HTML, but are mandatory in XHTML. Quotes around non-numeric attribute values are always mandatory. In this case there are font tags, which means that this is HTML (XHTML disallows font tags IIRC), so the quotes are optional.
     



  • nope ... I've used <form method=POST> and had no problem with that ... :D so quotemarks aren't really mandatory for non numeric.

    I wonder if that page was made with obfuscation in mind? I would definitely crap out if I was to modify that thing...



  • @danixdefcon5 said:

    nope ... I've used <form method=POST> and had no problem with that ... :D so quotemarks aren't really mandatory for non numeric.

    I wonder if that page was made with obfuscation in mind? I would definitely crap out if I was to modify that thing...

    They're mandatory by the SPEC, but generations of web-kiddy idiots prevent any reasonable web browser from enforcing such niceties. 


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.