Slashdot HTML 4.01 and CSS 748
After 8 years of my nasty, crufty, hodge podged together HTML, last night we finally switched over to clean HTML 4.01 with a full complement of CSS. While there are a handful of bugs and some lesser used functionality isn't quite done yet, the transition has gone very smoothly. You can use our sourceforge project page to submit bugs and we'd really appreciate the feedback. Thanks to Tim Vroom for putting the HTML in place, Wes Moran for writing the HTML in the first place, and Pudge for writing the code to convert
900k users, 60k stories, and 13 million comments to comply. And for the brave, download the stylesheet and start experimenting with new themes and designs for Slashdot: some sort of official contest to re-design Slashdot is coming soon, so you can get a head start now.
Response to some reader notes in the forum:
- There are a handful of validation errors. Some will be fixed in the next day or so. Others are external HTML that is out of our hands. We may never toally validate with zero errors. yes we're comfortable with that.
- We're not going to XHTML for the same reasons as above- we control almost all of our HTML, but some of it (like the ads, and imports from other sites) just isn't ours to muck about with. We could go to XHTML, and someday we might, but today we're happy to just get to HTML 4.01 and CSS.
- Light Mode will be back in some form or another. The problem is that light mode served two purposes: Low Bandwidth, and Simplified Design. The later will probably be handled with a CSS theme (we have a handheld theme already). Low Bandwidth is a little trickier, but we will resolve that soon.
- All of our code is beta tested on www.slashcode.com and use.perl.org. Unfortunately there's always a few issues from those tiny tiny sites and the giant bohemoth that is Slashdot itself.
HTML 4.01?! (Score:3, Insightful)
stylin' (Score:3, Insightful)
Well, I guess I have the best compliment (Score:5, Insightful)
Except then I hit reply and the post a comment dialog looks a bit different but not bad.
Must have been quite the effort, congrats.
close... so close (Score:4, Insightful)
summary: "This page is not Valid HTML 4.01 Strict!"
Sure, only 13 on the front page of /. (don't remember how much before) and they all seem relatively minor. Still, sure is better than what it was. Glad to see it.
thng
Re:Testing process (Score:3, Insightful)
I'd prefer that they worry less about standards compliant code, testing, and other bullshit and instead work on eliminating worthless editorials, duplicate stories, and any number of other far more important issues to make Slashdot better.
It's nice to see that they are working on *something* but it *was* working all those years just fine. It's just been the last two years that Slashdot has gone *really* downhill with stuff that has nothing (or little) to do w/the codebase.
Re:So that is why (Score:5, Insightful)
Seriously, don't you think it's time to drop support for NS 4? I mean this is the slashdot crowd, that has been saying for the last 8 years that developers should comply with standards and don't tune web pages for a specific browser, and now that finaly it is compliant with the standard, you are complaining that it looks bad in an ancient browser? You know, slashdot now also looks completely crap on BeOS's netpositive. should I complain about that as well?
Re:Yawn! (Score:4, Insightful)
More importantly, it makes things like what you are requesting relative bably steps.
Re:Thanks a bundle! (Score:2, Insightful)
Re:Thanks a bundle! (Score:3, Insightful)
Light mode worked very well for both. Keep in mind that a majority of handheld based browsers and things like Lynx/links dont have much use for css if they support it at all. Not to mention that for handheld devices low bandwidth is almost alwas a requirement as well, considering that many people who use one for accessing the internet do so on one of the cellphone networks, and are likely to pay per byte. The 2 things are indeed different requirements, but they more often then not happen to come together so why not serve both with the same solution?
And it looks wierd. (Score:4, Insightful)
Of course, web design is unpredictable and I'm sure it'll get sorted out eventually.
Re:Not true (Score:3, Insightful)
I see it the other way around. I loaded it up, read articles, clicked the links, changed the filtering, etc, and it all worked just fine.
I think Misagon should have been more clear that he didn't like the way it looked instead of saying that it was broken, because it's clearly not broken. The plain HTML style for Netscape 4.x is very common these days, any Netscape 4 user should be used to it by now.
Re:HTML 4.01?! (Score:3, Insightful)
Tags (Score:3, Insightful)
Example 1: <img src="img.png"
Example 2: <br
Re:HTML 4.01?! (Score:3, Insightful)
"Nearly all browsers" is a very disingenuous way of saying "the majority of people are using a browser that doesn't accept application/xhtml+xml".
In order to serve XHTML 1.0 documents as text/html you have to use Vary: Accept, which reduces your cache hits, slowing down your site, and driving up bandwidth use and server load.
You also have to actually write a page that would work if it was served as application/xhtml+xml - something that would require their third-party advertisers to rewrite their Javascript for.
Furthermore, you also have to comply with Appendix C of the XHTML 1.0 specification, which, among other things, restricts you to UTF-8 or UTF-16, which will cause you severe compatibility headaches if you need to use many non-Latin-based languages.
Nonsense. You can use <font>, layout tables, etc in XHTML just as you can in HTML.
Re:HTML 4.01?! (Score:3, Insightful)
The parsing engines are now all mature and so having to squeeze layout, scripting etc. into an XML format that doesn't necessarily lend itself to this makes no sense to me. Yes have well formed HTML, but making it XML compliant, why bother?
Re:HTML 4.01?! (Score:5, Insightful)
Because its the Right Thing To Do.
Sure, it works fine as is. That's great. But if you can code in XHTML, why not? There are no good reasons not to apart from the fact you are lazy (I don't buy any of the arguments from that
XHTML enforces nice, clean code. None of the HTML fanboys can argue that. It can be parsed nicely in an XML parser, making it portable into all sorts of applications, from automagic web spiders making massive search engines, to little Java programs. HTML makes parsing more complicated, and the error handling an even bigger pain. Getting everyone to XHTML, especially technology flagwavers like
No, you don't have to do XHTML. But you should.
Re:Wrong date?! (Score:2, Insightful)
Surely thats a bug. We can't edit comments posted.
We can post them, or create them, but we can never edit them.
Also, the order of the buttons has changed, is that to get us double checking.
I noticed the changes to the user page and thought FF had dropped my config profile (min font size) thankfully it hasn't.
Re:Thanks a bundle! (Score:2, Insightful)
Please speak for yourself, d.de. Or are you going to refer 'us' to the 'US centric' section of the Slashdot FAQ?
There are literally millions of people using the 'net over slow dialups, multiparty daisy-chained wireless links, PDA/phones not using GPRS, etc.
Re:HTML 4.01?! (Score:4, Insightful)
If HTML is not perfect, it will still display just fine. If XHTML is not perfect, nothing will be displayed, except your XML errors.
Unless, of course, your XHTML is being rendered as HTML, not XML, in which case why are you doing XHTML at all?
Re:Ideally (Score:3, Insightful)
But it does fail gracefully. Other than looking like crap, Slashdot is perfectly usable in Netscape 4.
Re:Easy solution! (Score:1, Insightful)
No "border" attribute for the IMG tag? No "align" attribute for the P or DIV tag? No "language" attribute for the SCRIPT tag? In that case, I've been writing VERY bad html for a LONG time.
<flamebait>When I see errors like this, I wonder what friggin' use these validators are... if you call these things errors, then why do all browsers (even mozilla/ff) honor these attributes instead of ignoring them? What purpose does it serve to flag these as "errors" other than to be pedantic in some way, shape or form?</flamebait>
Okay, I'm flying a bit off the handle, but can someone explain how/where/why these attribs were developed, why they continue to be supported? Or are their use intended for a different DOCTYPE, or something like that? (DOCTYPE declarations -- yet another thing whose purpose I never fully grasped)
Re:Redundant UL and LI in menus (Score:5, Insightful)
There is a lot of "div-itis" though, but I'm guessing that was to provide flexability for user defined stylesheets in the future, so can be forgiven i guess.
Re:Not true (Score:3, Insightful)
Seriously, why?
Re:Wrong date?! (Score:4, Insightful)
Oh good, it's not just me.
is that to get us double checking
If they wanted to do that, you'd think they'd simply not show a Submit button until after the first Preview.
Re:HTML 4.01?! (Score:3, Insightful)
* Scripts that use document.write() will not work in XHTML contexts.
Good! document.write() should have been put out to die years ago.
Yes, lets break things! Let's break things everywhere!!!
FTP isn't secure. Kill it! Force everyone to use SFTP right now!
HTTP isn't secure. Oh no! Kill it! Force everyone to use HTTPS right now!
Someone wrote a complient web page two whole years ago and they expect it to work now???!!! Quick! Kill him!!!
Great step, thanks! Now display the years! (Score:3, Insightful)