W3C Approves DOM Level 2
techsoldaten writes "Web developers rejoice! W3C announced yesterday the DOM Level 2 specification has become a full recommendation. Article about it on Infoworld. The payoff for Web developers, once this recommendation has been incorporated into browsers, is cross-browser DOM scripting should become a thing of the past and XHTML will be available as a means of handling some data-related tasks within a Web page. One hole in the silver lining: the specification is not backwards compatible with DOM Level 1."
cross-browser DOM scripting should become a thing of the past
Umm, isn't cross-browser DOM scripting what we *want* in the future?
--------- Beware the dragon, for you are crunchy and good with ketchup.
From the article:
"This means that developers who build applications using DOM Level 2 won't be building products compatible with current DOM browser technology. This could be a problem," he said.
It's backwards compatible, but not *downwards* compatible. Just like Windows 2000 can run old DOS programs, but you can't run Win2K programs on DOS.
--------- Beware the dragon, for you are crunchy and good with ketchup.
Level 2? Man, I've gotten all the way to the top level of DOOM! The W3C must really suck at first-person shooters or something.
... which will be like, uhm, dunno, never?
There's not even ONE browser available TODAY, that FULLY implements HTML4 or CSS2 - regardless that their respective developers say otherwise.
I don't mean to troll, but who cares about standards when Microsoft doesn't care about standards? We can't push standards on WinIE.
For example:Technically correct and it compiles, but it doesn't do what you would necessarily want it to do. Testing against IE is most definitely not testing against a W3C standard for rendering. IE has its share of bugs too -- sometimes bugs that only show up when viewed in another possibly more standards-compliant browser.
And why dump XHTML (I'm assuming "strict") for HTML 4.01 transitional? They are basically the same thing only XHTML transitional is well-formed XML. Since you already went through the trouble of making the site well-formed, why dump it for HTML? That's like saving up money for a BMW, not ending up with enough money, and choosing a used Ford Pinto. What about the middle ground?
- I don't need to go outside, my CRT tan'll do me just fine.
This is the DOM Level 2 spec as applied to HTML and XHTML.
From the DOM Level 2 HTML recommendation:
- I don't need to go outside, my CRT tan'll do me just fine.
instead of having one case for each browser that exists, we first have to check which version were using and then have one case for each browser that exists
it's no longer about waiting for everybody to support the standard, now it's about waiting for everybody to drop support for the old standard, which takes much longer
Evidently your knwowledge of these things is pretty limited.
A web page in HTML4 and CSS can be much lighter than one coded in HTML 3.2. The reason for that is that using tables and the font tag is *very* verbose. With CSS you can replace several kB's of <font> along all your site with just a:
font-family: sans-serif;
font-size: larger; }
Then every <div class=brochure> would have these styling attributes. Suppose you want to make the heading in a brochure red:
<div class=brochure><h2>Buy this!</h2> ....
You don't even need to modify your HTML! You just add to the CSS (shared by all your site):
color: red;
}
That should be read as "h1 inside .title".
As you see, HTML and CSS makes web pages smaller, and more maintainable.