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.
So that is why (Score:1, Interesting)
I tried it because of a gnarly bug in Opera, requesting pages from the wrong sites....
Testing process (Score:3, Interesting)
Seriously, its like every Thursday morning its a big test to determine how many '503 Service Unavailable' we will get.
If this was done in a real web app environment, you'd guys wouldn't have your cushy jobs, ya know...
Having said that, I get a 500 error randomly on any post...
WC3 validator == very close (Score:5, Interesting)
Getting There... (Score:5, Interesting)
Validator says it's not correct Strict. There are 13 errors. Some areas still have FONT tags and whatnot, but I don't know if those are includes from external sites (and therefore out of
Welcome to the 21st Century.
Count on 'Em (Score:5, Interesting)
I'd like to see a Slashdotter make an app that shows trends of posting results. And an app that draws networks between posters, destinations, categories, etc. Let's rub Slashdot's soft green underbelly!
Re:WC3 validator == very close (Score:3, Interesting)
Re:Kudos on a great upgrade! (Score:5, Interesting)
Well they fixed it for Firefox but they added it in for IE (purposefully probably). I've seen it twice now.
Impact on Bandwith? (Score:5, Interesting)
Not according to W3C html validity checker... (Score:4, Interesting)
Since HTML 4.01 strict and XHTML 1.0 Transitional are so close, only minor differences really, you could easily make Slashdot XHTML 1.0 Transitional.
Re:Kudos on a great upgrade! (Score:3, Interesting)
Re:Stylesheet? (Score:5, Interesting)
Like a CSS Zen Slashdot.
Re:Kudos on a great upgrade! (Score:2, Interesting)
Holy Shit! (Score:5, Interesting)
Having worked on smaller sites, I can imagine how difficult this change was. I took a quick peek at the code; it's so much cleaner now, and it loads so much faster! Congratulations, guys.
Re:Kudos on a great upgrade! (Score:4, Interesting)
Re:converting comments? (Score:5, Interesting)
Basically, we were allowing various things in comments for years that were not compliant with HTML 4.01 strict. Even moreso for stories. So about six months ago we fixed the code to force compliance with HTML 4.01 strict, and about two months ago converted old content accordingly.
Re:Light version wishlist? (Score:3, Interesting)
1. The whole shebang: all the functionality, all the bandwidth.
2. Light mode: no slashboxes, less bandwidth. It's not bad for mobile, but now that it's not full-functionality, I can't leave it enabled all the time.
3.
What I'm missing now (a fire-and-forget way to get full functionality on the desktop but lower bandwidth and all the comments on the phone) can be fixed one of several ways:
1. A way to set my preferences to be different for mobile and desktop browsers.
2. A full replacement for light mode, with all the site functionality
3. A more complete mobile mode with all the comments present.
Re:Impact on Bandwith? (Score:3, Interesting)
I once tried cleaning up a site with lots of tables and inline formatting, converting it to CSS. Stripping the formatting down saved roughly 15-20% on that site the more pages were visited using the cached stylesheets. If you only visited the front page, the bandwidth usage was actually a bit higher. It all depends how much inline formatting you have, but I thought 15% was significant enough to make the effort for, especially if traffic (hence bandwidth expense) is high.
Sickening (Score:1, Interesting)
Re:Kudos on a great upgrade! (Score:3, Interesting)
-- Edit Comment ----
Name
Rei (Log Out)
URL
http://www.cursor.org/ [cursor.org]
Subject
Re:Kudos on a great upgrade
Comment
-blah
-blah
-blah
-blah
-blah
-blah
-blah
-blah
-blah
-blah
-blah
Use the Preview Button! Check those URLs!
* No Karma Bonus * Post Anonymously
Plain Old Text Preview Submit
Really, it's barely usable. It looks horrible.
Re:Kudos on a great upgrade! (Score:5, Interesting)
http://lists.w3.org/Archives/Public/www-style/200
Re:Kudos on a great upgrade! (Score:5, Interesting)
Re:HTML 4.01?! (Score:4, Interesting)
There are several browsers (and other tools, like XML parsers) out there that will break if an XHTML format doesn't validate as perfect XML. Since Slashdot does not control all of the code they pull in (especially ads, but also comments - neither of which are guaranteed to be valid XHTML), they want to play it safe.
Redundant UL and LI in menus (Score:3, Interesting)
If you want to clean up your code more, all the menu items are anchors wrapped in list items. this can be much cleaner styled as:
As compared to:
BTW, nice use of fieldset.
Re:Kudos on a great upgrade! (Score:5, Interesting)
Re:Kudos on a great upgrade! (Score:2, Interesting)
I wish I could work two days every eight years and get a case of beer for doing MY JOB.
Re:Kudos on a great upgrade! (Score:2, Interesting)
ATM
Re:Wrong date?! (Score:3, Interesting)
You probably post too frequently or not frequently enough. Myself, I MM about 1-2 times/month when I'm bored. I read /. daily and post only occasionally, usually in a week I'll have a day where I'll post 4-5 comments then no more. I also have Excellent Karma and 95% positive MM score. I get mod points probably twice a month if not more.
This is mostly detailed in the FAQ, but basically they have a profile of their ideal moderator and apparently I'm it. :)