XHTML 2.0 Working Draft 45
Rytsarsky writes: "W3C has released the first public working draft of XHTML 2.0. 'XHTML 2 is a markup language intended for rich, portable web-based applications. While the ancestry of XHTML 2 comes from HTML 4, XHTML 1.0, and XHTML 1.1, it is not intended to be backward compatible with its earlier versions.' Some notable changes are the introduction of navigational lists (<nl>), sectional hierarchy with <section>, and the long-awaited deprecation of <br> in favor of <line>."
i claim this for uiuc.test (Score:1)
Re:Will anyone implement this? (Score:1)
It would be relatively easy, if not already possible, for Mozilla to do this.
LINE tag long-awaited? (Score:1)
Re:LINE tag long-awaited? (Score:2)
Besides BR makes sense, and LINE doesn't. Why not NL, or NEWLINE, or CR? LINE seems like a better replacement for HR then BR to me.
Re:LINE tag long-awaited? (Score:1)
Re:LINE tag long-awaited? (Score:3, Informative)
Re:LINE tag long-awaited? (Score:1)
Hmm... (Score:3, Funny)
Re:Hmm... (Score:1)
Re:Hmm... (Score:1)
What about "forcing" people to use a newer standard? I'm not referring to XHTML 2.0, but HTML 4 or newer. How many percent are actually limited to a HTML 3.2 browser?
</line>
<line>
I know this seems like flamebait but I'm serious
</line>
Re:HTML 3.2 browsers and lesser (Score:1)
Re:Hmm... (Score:2)
Back in my day, we had to parse ugly, non-conforming HTML by hand for every site and we liked it! None of this fancy-shmancy "valid" or "conformant" SML for us, no-siree.
I've said it before and I'll say it again, give a kid a parser and he'll never learn how to parse himself.
Welcome changes (Score:1)
I currently use a 'section' tag to divide up my XML, then use XSL to mark up those sections into XHTML, using the name and depth of each section to generate a table of contents.
An example: this XML [rikkus.info] is rendered to this XHTML [rikkus.info].
The new tags make a lot of sense IMO. It seems the W3C have some understanding of how HTML is used in the real world.
Re:Welcome changes (Score:2)
Re:Welcome changes (Score:1)
Rik
You forgot a line (Score:1, Funny)
a resounding "eh?" (Score:3, Interesting)
Most sites aren't even HTML 4 compliant, let alone XHTML 1.x compliant. That's ok, becuase most (as in, probably 75 percent or more) of all browsers out there have broken HTML 4 compliance (I include CSS support with that), so even if the sites did use Completely Correct XHTML, the fucking clients wouldn't render it as the new standard dictated. For all practical purposes, the only thing sure to work right now is HTML 3.2. It was only relatively recenly that we could sort of begin to forget about the 216-web-safe colors resulting from widespread 8bpp video adaptors and the layout restrictions of 640x480 mainstream moniter sizings. I wish I was wrong, I really do. New, logical standards are good, and I'm glad somebody's doing the work. But honestly, does anyone really expect for this to be available as a real-world development option any time in the next four-plus years? I'm sorry to be harshly realistic, but somebody please wake me up when the web's layout code is logical, clean, and supported by all the clients we have to worry about...
This is not to say that XML is not useful as a web development tool, quite the contrary. Nothing else comes close to giving you the multiple-generated-format flexibility (parse it to WML, parse it to HTML, parse it to PDF, parse it to VoxML, parse it to ...) needed to support all the crazy things people are using to access http resources these days. (The irony here is that as mainstream browsers have stabilized/stagnated, a combinatorial explosion of types of clients has taken place. The idyllic world of infinite permiability of information promised, in essence, by XML is a long way off... but it's close enough to be tantalizing. I can't wait for the day when I can really do just about anything from a web terminal that is my cellphone that I can do now sitting here in front of my workstation.)
Re:a resounding "eh?" (Score:1)
Some of us (the obsessive-compulsives like me) try to make our sites compliant, or as compliant as possible while still rendering acceptably in most browsers (my targets: IE 5+, NS4+ (incl. Mozilla/NS6)).
Unfortunately, most browsers are horribly broken (IE renders incomplete s, Netscape 4's CSS support is dodgy at best, both browsers can flake out with complex tables used to do positioning), so sometimes we need to leave in the "old-school" hints (like tags) to get things to work. That is NOT an excuse to not try to code to the standards. I have a number of sites which are XHTML-1.0 and 1.1 compliant (100% according to the W3C validator) that are in development now, and an equal number that are close to compliance with the exception of tags needed to support legacy browsers.
Short version of this comment: Code to the standards and bitch out the browser makers to adhere to them AS WRITTEN. It's not the designer's fault(although it is our problem) that companies cant read a standards document and make appropriate changes (and yes, I realize that keeping up with the standards is time consuming and expensive - do it anyway. You want to be in this market, keep up.)
</rant>
Re:a resounding "eh?" (Score:1)
blue net (Score:1)
And the black ground is white? I like green on black just like my system options say.
But seriously, I use tables because they support scaling &co. Can you do that with CSS?
Re:blue net (Score:1)
Re:blue net (Score:1)
Re:a resounding "eh?" (Score:3, Insightful)
XHTML is already quite popular, because it provides a path to XML without breaking legacy clients. The top three clients already support parsing XML and rendering closely to the standards when it's served with the right Content-Type.
XHTML 2 is another step towards this, loosing the legacy crap of HTML 4 and fixing problems without worrying about backwards compatibility. Hell, stick to the basics and you can provide for most of the tags for *current* clients with a bit of CSS.
This is only a working draft, anyway. I wouldn't expect it to reach recommendation stage this year. Don't forget, they need two interoperable implimentations of each feature to even be concidered
Did I miss it or... (Score:2, Interesting)
I didnt have a DTD to grep through since they havent released it yet, but I hope there's still a convenient way to place images on a page.
Anyone care to point out the glaringly obvious (yet overlooked on my part) location of this in the WD?
Much Appreciated,
Re:Did I miss it or... (Score:2, Informative)
Implementation. (Score:1)
What I am trying to say is that, the first step to acceptance is the browser, then the wysiwyg editor, then the "html coders".
Main changes (Score:4, Informative)
Re:Main changes (Score:2, Informative)
An XFrames Working Draft has been released. See http://www.w3.org/TR/xframes/ [w3.org]. XML Events look really fun, too.
Re:Main changes (Score:2)
That's it? (Score:2)
Re:That's it? (Score:2)
Go poke around the CSS3 [w3.org] working drafts, and maybe join www-style [w3.org] if you want to discuss it with clueful people. What about them? <noscript> may be removed in favour or JS/DOM/CSS, but it's unlikely. <script> may be replaced by <link>, but again probably unlikely given that it makes it harder and less reliable to use client side scripting (a good thing? Maybe, but I'd be wary of pushing yet more ways of things going wrong). Um, from XHTML 1.0 it's been explicitly stated that you should not do this, since UA's are allowed/expected to strip the comments.
CDATA is the proper way to do this if you must; comment hacks are available if you want to hide from broken clients, but typically you should be using <link> for your stylesheets and <script> for your scripts if they're complex enough to require such hacks. Think of it as a handy code smell
We send <object> for to have your advice... (Score:2, Insightful)
"Fweeky" writes:
I do not get a secure fuzzy feeling about this element, when I read the relevant w3 spec, and see:
So, instead of the relatively safe and well-defined <img> tag, user agents must now support a strange new <object> tag, which (at some unknown author's whim) may decide to run external applications and feed them arbitrary untrusted data.
The w3 example shows the user agent happily downloading and running some unknown chunk of Python code, in the blind hope that it does nothing more "display a clock"!
At a minimum, this means the user agent will need a lot of security configuration, to specify which MIME types it's allowed to handle at all, and exactly which external applications should be allowed to process them. Even then, I predict an amazing new ecosystem of exotic exploits.
>;K
Re:We send for to have your advice... (Score:2)
It's effectively an img/embed tag which can be nested to allow the UA to fall back if it doesn't support something.
The draft's example includes showing the use of embedding an applet - so what? If the UA wants to execute it outside a sandbox, that's no the W3C's problem, just like Java or ActiveX security or Flash's security isn't their problem. If Python applets were ever to appear I'm sure they'd be secured similarly.
my biased take on this (Score:2, Interesting)
of course people will complain XML is bloated or slow or 100 other things, but having worked with a couple different content management systems, it would make frequent edits easier. It gives more power to non-technical people who want to change their site and free up HTML coders from doing retarded text edits. Plus it might help the adoption of semantic web and slowly move the industry towards a format that describes the content is greater detail. Generating conformant XHTML from XML is straight forward from personal experience. If getting millions of website to change was as easy as writing a new XHTML spec, the web would become a slightly more organized space.
Security (Score:2, Interesting)
When a web based application is displaying content aquired from other sources a great deal of effort is required to render the content harmless. In this article [kuro5hin.org] on kuro5hin it details the efforts by Yahoo to ensure that malicious javascript is not rendered in web mail.
I think the markup language should allow the page designer to disable potentially dangerous features such as javascript within particular frames (or other elements), but still allow it to work within the page as a whole.
<IFRAME SECURITY="scripting=no,images=yes" SRC="...">
</IFRAME>
It's not useless (Score:1)
That's true - the current browsers won't render it. And they can barely render various other simple features, blah blah blah. However, this sets the stage for several years from now - when browsers will render it. I'd figure four years.
For example, just now, it's becoming possible to design web pages with CSS and relatively plain HTML markup. CSS having been established in late 1996, according to this [w3.org]. So, figure four or five years from now we may start designing web pages in XHTML 2.0, and Dreamweaver version 53 or whatever might actually spit out pages in XHTML 1.0.
I know it's annoying that progress is so slow, but that's how it goes.