Slashdot Mirror


W3C Releases Drafts For DOM L2 And More

TobiasSodergren writes "People at W3C seem to have had a busy Friday, according to their website. They have released no less than 4 working drafts (Web Ontology Language (OWL) Guide, the QA Working group - Introduction, Process and Operational Guidelines, Specification Guidelines) and 2 proposed recommendations: XML-Signature XPath Filter 2.0 and HTML DOM 2. Does the this mean that one can expect browsers to behave in a predictable manner when playing around with HTML documents? Hope is the last thing to leave optimistic people, right?"

28 of 150 comments (clear)

  1. W3C standards getting out of hand by Anonymous Coward · · Score: 3, Funny

    Who needs more than h1, b, and i tags for documents?

    1. Re:W3C standards getting out of hand by GimmeFuel · · Score: 4, Funny

      You're forgetting the tags that are the basis of strong web design, like marquee, blink, bgsound, etc. Script tags are also very useful, for scrolling status bars, alerts that tell you how cool the page is, text that follows your cursor, and anything else you can copy/paste from annoyinghtmlforaolers.com

  2. doesn't matter... by adamb0mb · · Score: 3, Insightful

    doesn't matter how many standard that w3c sets, MS is never going to follow them. They'll just set their own standards, and those will become the de facto standards... its rough, but its the ways it is...

    --
    www.punkmafia.com
    "I am insane, and you are my insanity"
    --Bruce Willis, 12 Monkeys
    1. Re:doesn't matter... by Goalie_Ca · · Score: 3, Interesting

      I agree exactly with that. How many standards does IE 6 adhere with. One of my professors actually uses microsoft office (or some other ms product) to make the website and its components and it is a pain in the ass to access unless i'm using IE 6. In fact i was using mozilla and I ended up missing 6 pages from a document. I don't see why and how MS needs to break standards other than for their own agenda. If they do set their own standards it should be something the whole world can agree upon. Communication technologies should all follow standard protocols!

      --

      ----
      Go canucks, habs, and sens!
    2. Re:doesn't matter... by ender81b · · Score: 5, Insightful

      Ok... you tripped mode.

      I work in a student computer lab for a fairly large university, about 28,000 students. You wouldn't *believe* the problems I have to deal with because of stupid, and I stress stupid, professors using stuff like MSword/powerpoint for their class notes and webpages.

      I'll give you a few examples. Powerpoint is the most common for posting class notes. All good and fine because thanks to OpenOffice even a linux box can read pp slides just fine. The problem is printing them. Since we have only dot matrix printers (long story...) if the professor uses too weird a color scheme the slides don't print worth a damm, even with 'print only black/white' option checked. Problem #1.

      The bigger problem is when they use MSword to post syllabi, notes, etc. Students have a problem viewing them at home for whatever reason (most likely they are using an old version of word) and they have to come back to campus to look at this stuff. It is insane. I always direct them to install OpenOffice but sometimes they might only have a modem so it isn't really an option. And if you talk to these professors about only posting stuff in MSWord they get defensive and say such things like 'everyone uses it' and other to the like. Try pointing out that just clicking 'save as rich text format' will cover 99% of the stuff they publish just doesn't work. Sigh. It is becoming a real problem. Same with webpages - what standards, microsoft is a stanard, I'm sure this would work fine if you would use a *microsoft* browser, etc, etc.

      Not that all professors are dumb, a lot use things like rich text format and try to stay away from word but alot don't. It is a major headache to some students, and for me. And don't even get me started about how IE handles word documents - has the nasty tendancy to embed them within the current frame which causes havoc with printing, saving, etc - at least for your average student.

      Seriously, more teachers need to be educated on thigns like open formats. For instance, it wouldn't be that hard to devolp a campus-wide XML format and a nice little front-end for making syllabus's, class notes, outlines, etc available to all faculty. That way you could ensure that everyone had equal access to the documents instead of forcing students to use MS products.

  3. No. by Trusty+Penfold · · Score: 5, Insightful

    Does the this mean that one can expect browsers to behave in a predictable manner

    When there was 1 standard (HTML), browsers didn't behave predictably.

    Now there are more, there is more scope for implemetations to have their quirks, not less.

    Standards are large and complicated descriptions of expected behaviour. Each implementor may have a slightly different interpretation. Different implementations will have their strengths and weaknesses which make different parts of the standard easier or harder to implement fully and/or correctly. There may even be reasons why an implementor may choose to ignore part of a standard (perhaps it is difficult and he believes that users don't want or need that functionality yet).

    Unfortunately, standards are an ideal to aim for, not a description of reality.

  4. C++ XML API by be-fan · · Score: 4, Interesting

    I've been looking around for a nice simple API to XML parsers, and I've yet to find one. Java and Perl both have clean, native-feeling XML APIs (JDOM and XML::Simple) but so far, the only C++ ones I've found map closely to DOM's overly complicated object model, and don't "feel" like C++ libraries (they don't use the STL and whatnot). Anybody know of a library along the lines of JDOM except for C++?

    --
    A deep unwavering belief is a sure sign you're missing something...
    1. Re:C++ XML API by sporty · · Score: 3, Informative

      Have you tried the Xalan type stuff? http://xml.apache.org

      --

      -
      ping -f 255.255.255.255 # if only

    2. Re:C++ XML API by KidSock · · Score: 5, Informative

      I've been looking around for a nice simple API to XML parsers, and I've yet to find one. Java and Perl both have clean, native-feeling XML APIs (JDOM and XML::Simple) but so far, the only C++ ones I've found map closely to DOM's overly complicated object model, and don't "feel" like C++ libraries (they don't use the STL and whatnot). Anybody know of a library along the lines of JDOM except for C++?

      Someone posted a neat little class to the expat mailing list ~2yrs ago. Basically it was just a Node class with STL list for children and a hashmap for attributes. It was very small, clean, and was in essance a DOM. It used expat but trust me, the code was so tiny you could use any parser with it. It was like 200 lines of code.

      I liked it so much I created the same thing in C called domnode.

      Search the expat archives. Wish I could give you more to go on.

  5. DOM not HTML by krokodil · · Score: 3, Informative
    Does the this mean that one can expect browsers to behave in a predictable manner when playing around with HTML documents?


    You seems to confuse DOM with HTML standard. DOM does not enforce HTML document structure, it is just OO representation of HTML and XHTML documents.

  6. Re:I just wish one little thing by Cheese+Cracker · · Score: 4, Informative

    JavaScript is good for many things, like eliminating travel to server for doing basic input checks, make HTML documents smaller (and thereby faster to transmit), dynamically creating HTML in a frame etc. Other people can probably give you more examples.

    If you got a problem with popup ads, then please download the Opera browser... you'll find F12 to be your best friend. ;)

    If you really want to crusade against something, then VB script is a better candidate or why not Outlook... the worst virus spreading software ever created.

  7. Re:Standards by eddy+the+lip · · Score: 4, Informative

    Somedays I'm more optimistic. Today's one of those days (tomorrow may not be 'cause I'm digging deeper into IE's weird-ass DOM than I usually care to). But...

    Most web developers that have been around for a while would rather code to standards than to marketshare. Standards give you the promise of backward, and more importantly, forward, compatibility. It's also a helluva lot easier to sort out your code when a client asks for a redesign in a year or two if you've been conscious of more than just "making it look right" in the popular browser of the day.

    Markup designed for IE only often does truly evil things on other platforms - there's going to be more cellphones and PDAs accessing web pages, not fewer. There are also serious organizational advantages to coding to standards - more tools for handling your pages, it's easier to whip up a quick perl script to process standards compliant HTML...the list of advantages is long.

    Just like any other field, there's a trickle-down effect. Not everyone will write good, W3C compliant code, but more will, more often. And despite their megalithic, feudal mentality, Microsoft will have to pay attention. IE6 is still a long ways away from adhering to standards, but it's much, much closer than IE4 was. This seems to have been in large part a reaction to developers bitching about their lack of compliance. I'm hopeful the trend will continue.

    --

    This is the voice of World Control. I bring you Peace.

  8. Ohhhh... _DOM_. by TheSHAD0W · · Score: 3, Funny

    I thought they released a draft for DOOM 2.

    Yeah, considering how long ago it was released, the draft for it would be just about due...

  9. Yea, bash MS some more... by Proc6 · · Score: 3, Flamebait
    ... when Netscape did it to themselves. If you want to talk about standards, go look at charts showing what CSS properties Netscape versions properly support and which ones IE supports. IE kicks its ass all over the place. Netscape is downright broken on some very easy things. Now the new Netscape based on Mozilla, I can't comment. But that's when someone else did all the work for them, maybe Mozilla is fine. But IE is a pretty fast, stable browser that has supported more standards, more correctly than any version of Netscape prior to Mozilla. And if you want to talk about "MS's proprietary HTML tags", yea, Netscape did the same shit, so would anyone trying to own marketshare.

    How about an example from around the time of the Great Browser Holy Wars...

    NETSCAPE ONLY TAGS - blink - layer - keygen - multicol - nolayer - server - spacer

    INTERNET EXPLORER ONLY TAGS - bgsound - iframe - marquee

    Hmm... looks like Netscape had more.

    Look around you, proprietary "anything" is how you keep money coming in and marketshare up. If youre talking about some kind of open source, community developed code, like Mozilla, then yes, please avoid proprietary stuff. But quit bashing Microsoft just because they have a good browser that supports standards at least as well as their only major competitor and are using the same technique as just about every other capitalist on the planet to make more money and keep investors happy. Netscape sucked and deserved to die.

    Now go ahead, mod me down because I stood up for MS.

    --

    I'm Rick James with mod points biatch!

    1. Re:Yea, bash MS some more... by skunkeh · · Score: 4, Insightful

      Shock horror! Browser released in 1996 fails to support latest web standards!

      If you want to bash Netscape, aim at Netscape 6 or 7 (both of which have superb standards compliance thanks to the Mozilla project). Netscape 4 simply isn't relevant any more, and hasn't been for several years. It's only big companies and institutions who don't want the hassle of upgrading their site-wide PCs that are keeping it alive, and with any luck even they will give it up soon.

  10. Eh? by Wrexen · · Score: 5, Funny

    Web Ontology Language (OWL) Guide

    Soon to be followed by the Acronyn Formation Policy (FAP) ?

  11. Re:The W3C is a joke by Anonymous Coward · · Score: 3, Informative
    Has any company yet written a complete CSS1 implementation?
    Yes. Mozilla. Got most of CSS2 as well.
    A complete working version of DOM0?
    Once again, Mozilla. Also supports DOM1. Oh, and most of DOM2. See the Mozilla DOM Support doc for the details.
    Yet here we are toiling away on XHTML and CSS3(!) and DOM Level 2. And they don't even seem to give a rat's ass if anyone actually follows the rules.
    Good job the Mozilla developers care then. Mozilla supports XHTML and some CSS3 (see below) and DOM2 (see above).
    From what I hear about CSS3, it's going to be such a massive specification that no company (save Microsoft, if they actually gave a damn) would possibly be able to implement it.
    Mozilla implements bits of it, mainly as vendor-specific extensions. No, that's not the same as proprietary. Vendor specific extensions are allowed by the spec if implemented correctly e.g. properties should be prefixed with -vendorname- (Mozilla uses -moz-).
  12. Not "Proposed" Recommendation anymore, it's final by mdubinko · · Score: 3, Informative

    >2 proposed recommendations: XML-Signature XPath Filter 2.0 and HTML DOM 2.

    XML-Signature XPath Filter 2.0 is a final W3C Recommendation, not proposed.

    -m

    --
    --- Learn XForms today: http://xformsinstitute.com
  13. Re:Standards by frawaradaR · · Score: 3, Interesting

    Yeah, some really popular sites (like Slashdot) need to use standards compliant code and not cover for browser bugs. Wired recently went XHTML and CSS2. This is the way to go. If a browser can't render it, file a bug. If it doesn't work in IE, too bad!

    My own homepage doesn't render in anything but Mozilla, currently, but small, personal sites aren't gonna break or make anything (unless they come in the millions, which is unlikely).

    The people at Mozilla have provided us with a tool of 99% perfect rendering. Now it is up to the web site maintainers to actually enforce the use of Mozilla (or any other browser that fully adheres to standards; there is no other currently).

    But Slashdot won't take this upon its shoulders, because it doesn't believe in standards, just like M$.

    So M$ wins.

    --
    frawaradaR anahaha islaginaR!
  14. IE6 W3 support by Cardinal · · Score: 5, Interesting

    Actually, IE6 does a decent job. Their DOM1 support is good, their CSS1 is more or less complete, but their CSS2 is pretty crappy. Fixed positioning doesn't work, selectors like E[attr] are missing, etc.

    Lately I've been working on an app for a company's internal use, which means the delightful situation of being able to dictate minimum browser requirements. As a result, the app is designed for IE6/Mozilla. All development has been in Mozilla, and a lot of DOM use goes on. And it all works in IE6, no browser checking anywhere. My only regrets is I can't make use of the more advanced selectors provided by CSS2, so the HTML has a few more class attributes than it would need otherwise. But, overall, not bad.

    Another positive note, IE6 SP1 finally supports XHTML sent as text/xml. So at last, XHTML documents can be sent with the proper mime type.

    So despite being a Mozilla (Galeon) user, as a web developer who makes heavy use of modern standards, I look forward to seeing IE continue to catch up to Mozilla so that I can worry even less about browser-specific issues.

  15. Re:Standards by whereiswaldo · · Score: 4, Informative

    If a browser can't render it, file a bug. If it doesn't work in IE, too bad!

    Many sites can get away with this, but many cannot. If I'm selling a product on the web, I'll make darn sure that 99% of my customer's browsers work with my site. It's a good ideal to say "fix your IE bugs", but often not realistic.

  16. Sorry... by WhaDaYaKnow · · Score: 4, Informative

    Does the this mean that one can expect browsers to behave in a predictable manner when playing around with HTML documents?

    One simple example: innerHTML. This 'property' is not part of ANY W3C draft, yet many, many websites use it because both IE and Mozilla (Netscape) support it.

    Even though M$ is on the committee, their own browser still has plenty of features that are not defined in XHTML 1.0, DOM (level 2 or 3), CSS or whatever. And of course 99% of all web 'developers' are more than happy to use these features.

  17. W3C: stop now by g4dget · · Score: 3, Interesting

    The W3C should have stopped with a full specification of HTML. Anything they have been doing beyond that has been doing more harm than good. The web succeeded because HTML was simple.

    Of course, some client-side code is useful, but unfortunately, the major contenders have dropped the ball on that one. The W3C has given us JavaScript+DOM+CSS+..., but it's way too complicated for the vanishingly small amount of functionality, and nobody has managed to implement it correctly; in fact, I doubt nobody knows what a correct implementation would even mean. Flash has become ubiquitous, but it just isn't suitable for real GUI programming and is effectively proprietary. And Java could have been a contender, but Sun has chosen to keep it proprietary, and the once small and simple language has become unusably bloated.

    But, hey, that means that there is an opportunity for better approaches to client-side programming. Curl might have been a candidate if it weren't for the ridiculous license. But someone outside the W3C will do something decent that catches on sooner or later.

    1. Re:W3C: stop now by g4dget · · Score: 4, Interesting
      Should everyone just copy whatever Microsoft comes up with

      Everybody is, for practical purposes. Who do you think is dreaming up a lot of the stuff that comes out of the W3C? Look at the authorships of the standards. And if you sit in those meetings, you'll quickly see that Microsoft doesn't often take "no" for an answer.

      Microsoft has even told us why they like their standards to be complicated: they believe that if they just make it complicated enough, nobody else but them can implement them. Of course, Microsoft's reasoning is at the level of Wiley Coyote, with Open Source being the Roadrunner, but what can you do.

      One thing that's obvious is that these technologies are needed,

      We have a problem with creating dynamic web content, but the current crop of W3C standards for addressing that problem isn't working; it has turned into a Rube Goldberg contraption. Someone needs to start from scratch, and the W3C appears to be incapable of doing it.

      If we don't have someone like the W3C putting this stuff in writing somewhere, how else are we going to have a hope in hell of browsers talking to each other?

      Of course, things need to get written down and standardized. But the way standards are supposed to work is that people try things out in practice, whatever works well survives in the marketplace or among users, people create multiple implementations, then people get together and work out the differences among the implementations, then it all gets written up as a standard, and finally everybody goes back and makes their implementations standards compliant. It's a long, tedious process, but it does result in reasonable standards that real people can actually implement.

      What the W3C is often doing is using its position to create completely unproven systems on paper and let the rest of the world figure out how to deal with it. Or, worse, the W3C is used by powerful companies to push through "standards" that haven't stood the test of time and for which only they themselves have a working implementation. If you give that kind of junk the stamp of approval of a standards body, you make things worse, not better.

  18. er, yes. by DrSkwid · · Score: 3, Informative

    http://validator.w3.org

    Is a great tool.

    If your code is valid HTML then if anyone complains that their X browser doesn't render it properly that's your first point of defense.

    --
    There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
  19. Re:The W3C is a joke by IamTheRealMike · · Score: 4, Informative
    What good is a standard if you never hold anyone's feet to the fire if they don't support it? If developers never have any incentive to actually get it right? If the standards are so vague that it allows for interpretations that can be so drastically different that the standard becomes useless?

    You have to have standards. The W3C are the people who are widely recognized as being the technical lead for the net. Now they don't make law, quite right, but if there was no W3C then Microsoft really WOULD own the web: as it is, we can and do take them to task when they break the rules. They can ignore us of course, yet whaddaya know but IE6 supports DOM/CSS Level 1. Not a particularly impressive achievement, but it's a start.

    The standards are actually very precise, which is one reason they are seens as being very large. There is hardly any room for interpretation in stuff like the DOM, CSS, XML etc. Of course, sometimes when the internal architecture of IE mandates it Microsoft simply ignore things, the mime-type issue being a good example, but also the fact that you have to specify node.className = "class" to set the style on a new element, as opposed to setting the class attribute (which works fine in Mozilla). Why? Because (according to an MS developer) internally the MS dom is based on object model attributes, so that's what you have to set.

    Has any company yet written a complete CSS1 implementation? A complete working version of DOM0? Yet here we are toiling away on XHTML and CSS3(!) and DOM Level 2. And they don't even seem to give a rat's ass if anyone actually follows the rules.

    [sigh] Yes. Mozilla supports DOM and CSS Level 2 and they have partial support for Level 3 now. Level 0 is the term used to refer to the pre-standardized technologies, it doesn't actually exist as a standard so EVERY browser that can script web pages has a level zero DOM. It should be noted that TBL himself has stepped in on occasion to tick off Microsoft about stuff like browser blocks, bad HTML etc.

    From what I hear about CSS3, it's going to be such a massive specification that no company (save Microsoft, if they actually gave a damn) would possibly be able to implement it.

    Then you hear wrong.

    In the meantime we see developers actually building websites entirely out of Flash because there's one reference implementation (one version, period) and it just works. Is that the future we want?

    Developers do not build web pages out of flash. Marketing departments do. Luckily most web pages are not built by marketing.

    It's time to hold these clowns accountable. Make them do some real work: make them create a working version of their spec.

    Poor troll. The W3C already implement all their standards, go to w3.org and download Amaya. Nobody uses it for actually browsing the web, but there it is, proof that an actually very small organization with very few coders can implement their standards.

  20. Standards *DO* work. by rocjoe71 · · Score: 5, Insightful
    ...Because I use them all the time, testing against Mozilla 1.x, IE 6.0, 5.5 and 5.0.

    MSDN clearly marks out which functions are standard to and which version of HTML/DOM they are complying to.

    Mozilla is almost de-facto compliant because that's the only thing they have to work from and they don't have an agenda like interoperation with MS Office/Front Page.

    Standards compliance does work, it's the lazy/inept authors of web pages that are to blame for faulty product resulting from an ad-hoc approach to web page development.

    Then again, like the saying goes: "A bad workman always blames his tools..."

    --
    Height: 38U, Weight: 0 Newtons, Eyes: #0000FF, OS: Gray Matter 1.0 (Alpha)