<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Site Under Construction</title>
</head>
<body>
<h1>Under Construction</h1>
<h2>Gone to Florida for the sun...</h2>
<!--
Adding additional hidden content so that IE Friendly Errors don't prevent
this message from displaying (note: it will show a "friendly" 404
error if the content isn't of a certain size).
<h2>Gone to Florida for the sun...</h2>
<h2>Gone to Florida for the sun...</h2>
<h2>Gone to Florida for the sun...</h2>
<h2>Gone to Florida for the sun...</h2>
<h2>Gone to Florida for the sun...</h2>
<h2>Gone to Florida for the sun...</h2>
<h2>Gone to Florida for the sun...</h2>
<h2>Gone to Florida for the sun...</h2>
<h2>Gone to Florida for the sun...</h2>
<h2>Gone to Florida for the sun...</h2>
<h2>Gone to Florida for the sun...</h2>
<h2>Gone to Florida for the sun...</h2>
<h2>Gone to Florida for the sun...</h2>
-->
</body>
</html>
Yes -- it looks a little weird, but works. :-)
Hope this helps,
Scott```
By the way, on Reddit, triple backtick code blocks don't display properly on Old Reddit or many mobile & third-party clients -- the only multi-line code block that works on all Reddit clients is the one with 4 spaces at the beginning of each line of code. =)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Site Under Construction</title>
</head>
<body>
<h1>Under Construction</h1>
<h2>Gone to Florida for the sun...</h2>
<!--
Adding additional hidden content so that IE Friendly Errors don't prevent
this message from displaying (note: it will show a "friendly" 404
error if the content isn't of a certain size).
<h2>Gone to Florida for the sun...</h2>
<h2>Gone to Florida for the sun...</h2>
<h2>Gone to Florida for the sun...</h2>
<h2>Gone to Florida for the sun...</h2>
<h2>Gone to Florida for the sun...</h2>
<h2>Gone to Florida for the sun...</h2>
<h2>Gone to Florida for the sun...</h2>
<h2>Gone to Florida for the sun...</h2>
<h2>Gone to Florida for the sun...</h2>
<h2>Gone to Florida for the sun...</h2>
<h2>Gone to Florida for the sun...</h2>
<h2>Gone to Florida for the sun...</h2>
<h2>Gone to Florida for the sun...</h2>
-->
</body>
</html>
Yes -- it looks a little weird, but works. :-) Hope this helps,
Lmao that's so bad, it almost reads like they were deliberately trying to prank web devs. The fact that they have different size limits for different error codes makes it even better.
68
u/Robuuust Nov 11 '21
188
u/philogy Nov 11 '21
At this point trying to support IE 11 feels like it automatically creates bad code
130
u/cryptOwOcurrency Nov 11 '21
The bad code in this case, of course, is the code of Internet Explorer.
101
u/SnooApples9216 Nov 11 '21
Honestly, the comments explain things well enough that I would say this is good code. Doesn't seem like the author could have done much else
13
u/xhable Nov 12 '21
This is the limit for those interested.
The file size of a 404 page must be greater than 512 bytes, if you don't pad the file with comments internet explorer will display its own 404 page.
0
u/TommyHeizer Nov 12 '21
How is this bad code? It's not code. It should go on r/ bad design or something
-31
u/[deleted] Nov 11 '21
The light IDE is redflag #1