Slashdot Mirror


Slashdot HTML 4.01 and CSS

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.

15 of 748 comments (clear)

  1. HTML 4.01?! by Anonymous Coward · · Score: 3, Insightful

    Why not XHTML?

    1. Re:HTML 4.01?! by smallguy78 · · Score: 3, Insightful

      what baffles me about xhtml is that browser engines handle HTML in a fast and effective way, so the desire to switch to xhtml for standard's sake seems pointless - the markup language was created for the parsing engine.

      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?

      --
      Nothing costs nothing
    2. Re:HTML 4.01?! by Lewisham · · Score: 4, Insightful

      This is a lot like the argument for why bothering to comment, or why bothering to make code easy to understand, or why bother to code a web page in a half-arsed way as long as IE renders it OK.

      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 .ch site). Good HTML will look almost exactly like XHTML, why not make that extra step?

      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 /. should be easy.

      No, you don't have to do XHTML. But you should.

    3. Re:HTML 4.01?! by pudge · · Score: 3, Insightful

      In what way is writing xhtml harder than writing html 4.01?

      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?

  2. Well, I guess I have the best compliment by OS24Ever · · Score: 4, Insightful

    At first glance, it doesn't look any different to me, so you must have done something right.

    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.

    --

    As a rock-in-roll Physicist once said, No matter where you go, there you are.

  3. close... so close by Thng · · Score: 3, Insightful
    http://validator.w3.org/check?uri=www.slashdot.org

    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

  4. Re:Testing process by garcia · · Score: 3, Insightful

    Why don't you guys have a formal testing process in place for slashcode?

    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.

  5. Re:So that is why by a.ameri · · Score: 4, Insightful

    NS 4 nearly has no support for CSS. That's why the "new slashdot" (heh, never thought I would see that phrase) looks crap in it.

    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?

    --
    -- /* Those who don't underestand Unix, are condemned to reinvent it poorly */
  6. Re:Yawn! by Bedouin+X · · Score: 3, Insightful

    If you've ever done serious web design then you know that going from a 5 year old plus table-based layout to a completely CSS-driven one is more like a Godzilla step.

    More importantly, it makes things like what you are requesting relative bably steps.

    --
    Dissolve... Resolve... Evolve...
  7. And it looks wierd. by mcc · · Score: 3, Insightful

    In safari and it seems firefox for macintosh weirdness abounds throughout the new slashdot layout. Things show up in sans-serif fonts at random, for example the contents of the "recent posts" box on user pages, or the "allowed html" beneath a post. Things have unexplained margins or indents; for example the "Subject" box when you submit seems to be over one space from the comment box. When showing comments, all the gray boxes have surprisingly large internal margins but everything else has no margins at all, all the comments are scrunched together. Font sizes seem to vary sometimes at random, for example the first three headlines on the front page are a totally different size from the ones beneath. The whole thing looks a bit hodgepodge.

    Of course, web design is unpredictable and I'm sure it'll get sorted out eventually.

  8. Re:Not true by Bogtha · · Score: 3, Insightful

    I think your statement that it "does work" needed clarifying.

    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.

    --
    Bogtha Bogtha Bogtha
  9. Tags by slummy · · Score: 3, Insightful

    There's one thing you easily conform to standards with, end your img and br tags properly.

    Example 1: <img src="img.png" />
    Example 2: <br />

  10. Re:Redundant UL and LI in menus by Bitsy+Boffin · · Score: 5, Insightful

    Err, except the way it is now is semantically correct - it's a list of links. Your way it's just a bunch of links all mooshed togethor with no semantics at all.

    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.

    --
    NZ Electronics Enthusiasts: Check out my Trade Me Listings
  11. Re:Wrong date?! by BandwidthHog · · Score: 3, Insightful

    Also, the order of the buttons has changed

    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.

    --

    Quantum materiae materietur marmota monax si marmota monax materiam possit materiari?
  12. Great step, thanks! Now display the years! by Rewd · · Score: 3, Insightful

    Please, please, please display years on your dates ... I can't believe this hasn't been fixed yet.