Slashdot Mirror


XHTML 2.0 Working Draft

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>."

45 comments

  1. i claim this for uiuc.test by JeffMagnus · · Score: 1

    i claim this for uiuc.test

  2. Will anyone implement this? by JeffMagnus · · Score: 0, Troll

    So will anyone ever implement this? The browser wars have pretty much died down, and no one follows the standards anyway. New browsers are all about bloatware anymore.

    1. Re:Will anyone implement this? by Anonymous Coward · · Score: 0

      New browsers are all about bloatware anymore.

      What?

    2. Re:Will anyone implement this? by yancey · · Score: 1


      It would be relatively easy, if not already possible, for Mozilla to do this.

      --
      Ouch! The truth hurts!
  3. LINE tag long-awaited? by darylp · · Score: 1

    By whom??? I don't think there's a single web designer in the world who'd consider LINE to be a better replacement for BR.

    1. Re:LINE tag long-awaited? by ivan256 · · Score: 2

      Yeah, exactly, everybody was clamoring for two extra bytes? Really, the poeple who look at the code at this level probably don't care, and everybody else uses a WYSIWYGOIE editor and hense doesn't care.

      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.

    2. Re:LINE tag long-awaited? by AndyAMPohl · · Score: 0

      I consider it better. I think in some thick HTML it's probably easier to see. But on the other hand, changing it now seems problematic. -Andy

    3. Re:LINE tag long-awaited? by Chipaca · · Score: 1

      Obviously people who look at the code at this level do care, no?

    4. Re:LINE tag long-awaited? by merriam · · Score: 3, Informative

      Read the definition, and you'll find it's not about the name of the tag. It's about the structure. Lines are now marked up like paragraphs -- they are not separated by empty tags.

    5. Re:LINE tag long-awaited? by ivan256 · · Score: 1

      Yeah, I read the spec after I said that, and I agree the the new functionality makes more sense, but it doesn't do the same thing as BR as the original post implied. It's completely different. I still don't like the name, either, but I can't think of a better one.

  4. Hmm... by Karma+Farmer · · Score: 3, Funny

    So, when is Slashdot going to start offering XHTML 2.0 as a page rendering option? Actually, when is Slashdot going to start offering any sort of valid HTML as a page rendering option?

    1. Re:Hmm... by crapulent · · Score: 1

      Somehow I think we'll be seeing those HTML 3.2 DTD's for quite some time to come, if the past is any indication of how fast real world stuff tracks the standards...

    2. Re:Hmm... by sn0wflake · · 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>

    3. Re:Hmm... by pnatural · · Score: 2

      You kids!

      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.

  5. Welcome changes by rikkus-x · · 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 is rendered to this XHTML.

    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.

    1. Re:Welcome changes by satanami69 · · Score: 2

      But what would the second one look like in XHTML2.0?

      --
      I really hate Dan Patrick.
    2. Re:Welcome changes by rikkus-x · · Score: 1

      It would look exactly the same, but those people using screen readers or braille terminals would find it easier to navigate, as the table of contents and the sections would be marked as such in a generic way, rather than simply being labelled as such or delimited with headers.

      Rik

  6. You forgot a line by Anonymous Coward · · Score: 1, Funny

    "Reportedly, this draft was designed with Linux in mind."

  7. a resounding "eh?" by StandardDeviant · · 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.)

    1. Re:a resounding "eh?" by Slipped_Disk · · 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>

      --
      /~mikeg
    2. Re:a resounding "eh?" by bofkentucky · · Score: 1

      tables werent designed to do positioning. Check out my employer's web site. It sucessfully positions elements using CSS and is valid XHTML 1.0 transitional (note will be first thing tomorrow when I set the character encoding and remove that one stray border attribute, the boss wanted the mapquest block on the double.). Renders the same in NS 4.79, IE6, Moz1.0, and NS 7.0pr1 on windows 98. It would have strict complaince but how do I replace the "name" attribute for form elements?

      --
      09f911029d74e35bd84156c5635688c0
    3. Re:a resounding "eh?" by Anonymous Coward · · Score: 0
      It's a myth that tables were originally designed for tabular data only. Read the actual spec (HTML 3.2) and you'll see that layout is specifically mentioned.

      They didn't have an alternative layout method at the time - tables were intended to visual display.

      Spook!

    4. Re:a resounding "eh?" by Fweeky · · Score: 3, Insightful

      CSS 1 is about 6 years old, it's only seriously been usable for the last couple of years. Just because a standard isn't used much or handled properly doesn't mean it won't be eventually, or that the standard is worthless and hence shouldn't have been created.

      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 :)

  8. Did I miss it or... by Slipped_Disk · · Score: 2, Interesting

    Is there no tag or equivalent in this standard?

    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,

    --
    /~mikeg
    1. Re:Did I miss it or... by smileyy · · Score: 2, Informative

      I'm assuming you meant the img element. See the object element instead. That's what you'd use to embed media in the page.

      --
      pooptruck
  9. Implementation. by fogof · · Score: 1

    I think that this new specification in not necesarally design for HTML "programer" but more for ppl who create wysiwyg editor. When their "save as html" option saves as XHTML2.0 then you will see more pages on the web. Let's face it, 90% of the pages on the web are created by wysiwyg editor(dreamweaver, front page , word, star/open office). _Most_ ppl don't use notepad, let alone emacs or vi. Even if I use emacs, and most of us use emacs or vi, doesn't mean that most ppl who publish on the web use a text editor.
    What I am trying to say is that, the first step to acceptance is the browser, then the wysiwyg editor, then the "html coders".

    --
    --=.=-- www.cyber2000.qc.ca
  10. No <img> either. by Anonymous Coward · · Score: 0

    Significantly more noticable than is that they've finally done away with in favour of (not deprecated it - removed it!).

    This makes so much more sense.

  11. Main changes by Fweeky · · Score: 4, Informative
    For those who don't like reading WD's:
    • Navigation Lists (<nl>), with a default rendering not unlike a DHTML menu. This will likely be controlable by CSS using display: and :hover as seen on CSS/Edge
    • <q> becomes <quote>, a new <dfn> element, and <b> and <i> have been completely removed. <br> is going in favour of <line> which will help with DOM and CSS. <hr> is still there for some reason. (Text Module).
    • New <section> element. <h1> and friends are still in the draft, but are accompanied by a new <h> element to go with each (nestable) <section>.
    • <a> is still here; no XLink in this draft, despite it being a recommendation.
    • Forms are now replaced by XForms, also a Working Draft.
    • No more <img> or <embed>. They're replaced by the technically superior <object>. Let's hope certain companies can actually be bothered to impliment it properly.
    • Frames replaced by XFrames (nothing public yet).
    • A few more global attributes, and the use of XML Events for scripting events.
    Also, for those interested in such things, the CSS 2.1 Working Draft has been released too.
    1. Re:Main changes by Rytsarsky · · Score: 2, Informative

      Frames replaced by XFrames (nothing public yet).

      An XFrames Working Draft has been released. See http://www.w3.org/TR/xframes/. XML Events look really fun, too.

      --
      God became man to enable men to become sons of God. -C.S. Lewis
    2. Re:Main changes by Fweeky · · Score: 2
      no XLink in this draft, despite it being a recommendation.

      People wanting to know why might find "What is the scope of using XLink?" interesting.
  12. my biased take on this by f00zbll · · Score: 2, Interesting
    It's good to see XHTML move forward spec wise. In previous jobs where scraping other sites was a significant part of the job, HTML made life hell. Lately I've been thinking that moving to a combination of XML + realtime translation + XHTML conformant output. When I first started designing and writing web pages, a lot of the work was mundane text edits. I can see the value of using XML as the content storage format and having a lightweight web-based application for editing the content. This gets rid of several challenges from my biased perspective:
    1. don't need a complicated RDBMS driven content management system
    2. people can read XML fairly easy
    3. there are free xml editors available
    4. header/footer includes can be described in the XML as Metadata and maybe reduce maintenance. now a programmer doesn't have to get involved in changing an image map and image if that is in the xml
    5. easier for search engines
    6. easier for scraping applications
    7. more conformant to standards

    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.

    1. Re:my biased take on this by Anonymous Coward · · Score: 0

      You can still just as easily use an RDBMS. The point of XML (XML->XSLT->XHTML) is that you have a standard, workable delineation between logic and layout. You can let your design guy go to town designing the website however he wants, and all you have to do is hand him a DTD or XML Schema document to insert into his WYSIWYG XSL editor of choice.

      The XML family of tools gives you choices and flexibility.

      Of course, I'll be the second guy to say that 2/3 of what RDBMS are used for is improper. RDBMS are for RELATIONAL DATA people! RELATIONAL DATA. It irks me when people shove everything into a database just because some moron is signing over the companies assets to Oracle or M$.

      Anyhow, the real point is that your XML data doesn't have to be in flat-files. It can just as easily be generated on the fly. The point is just to get it into XML somehow so you can use all of these standards to give yourself the flexibility you need now, and even more down the road.

  13. Security by Sir+Runcible+Spoon · · Score: 2, Interesting
    I would like to see any new standard for markup languages include security features. On a quick scan through I see no mention of it.

    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 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>

  14. That's it? by booch · · Score: 2

    Seems like if they're going to make it backwards incompatible, they should change a lot more. For example, are nested tables really the best way to lay out a page? Can't we come up with something better than that? (Without hard-coding coordinates -- I'd like something like the GTK or Swing layout methods.) How about the script and noscript tags? Any chance we can stop having to put comments around the script code? How about separating the 2 distinct uses of anchor tags?

    --
    Software sucks. Open Source sucks less.
    1. Re:That's it? by Fweeky · · Score: 2
      Seems like if they're going to make it backwards incompatible,
      Not entirely, clients shouldn't need particularly huge modifications to support it. Certainly with Mozilla it's mostly some CSS work.
      For example, are nested tables really the best way to lay out a page?
      This is what CSS is for.

      Go poke around the CSS3 working drafts, and maybe join www-style if you want to discuss it with clueful people.
      How about the script and noscript tags?
      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).
      Any chance we can stop having to put comments around the script code?
      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 ;)
      How about separating the 2 distinct uses of anchor tags?
      What distinct uses? As links and named anchors in a page? We already have that; just apply an id attribute to any element on the page and it should work as if it was an <a name="foo">.
  15. don't like reading WD's by Anonymous Coward · · Score: 0

    Hell I don't like reading anything on the w3c site. Especially RFC's!!!
    You'd have thought they'd have come up with a 'decent' standard for writing human readable standards. (as apposed to executive readable)

  16. blue net by oliverthered · · Score: 1

    It's bwoken, I tried to scale it to fit my favorate browser size but it just stayed the same fatness.

    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?

    --
    thank God the internet isn't a human right.
    1. Re:blue net by bofkentucky · · Score: 1

      That would be a NS4 hack, anything but fixed positioning with div tags gets you in trouble when a browser resizes. However, the background should have followed your stylesheet, I havent done anything special to force my colors. There is a way to set the priority of your stylesheet, dig around on w3c.org to get it.

      --
      09f911029d74e35bd84156c5635688c0
    2. Re:blue net by King+of+the+World · · Score: 1

      Yes, with CSS-P you can have a percentage based layout which will scale with browser window size.

  17. We send <object> for to have your advice... by Mad+Bad+Rabbit · · Score: 2, Insightful

    "Fweeky" writes:

    No more <img> or <embed>. They're replaced by the technically superior <object>. Let's hope certain companies can actually be bothered to impliment it properly.

    I do not get a secure fuzzy feeling about this element, when I read the relevant w3 spec, and see:

    Most user agents have built-in mechanisms for processing common data types such as text, GIF images, colors, fonts, and a handful of graphic elements. To process data types they don't support natively, user agents generally run external applications. The object element allows authors to control whether data should be processed externally or by some program, specified by the author, that processes the data within the user agent.

    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

    --
    >;k
  18. Re:We send for to have your advice... by Fweeky · · Score: 2

    Um, is nothing new; it was in HTML 4 and looks much the same.

    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.

  19. HTML 3.2 browsers and lesser by Anonymous Coward · · Score: 0
    Less than 5%, so far as I can tell. It's more about browsers that did "HTML" around the era of HTML 3.2 - not the specific HTML 3.2 standard. It's not like any browsers were built for a particular Doctype in those days; they just applied all tags.

    However, rather that asking "how many are using old browsers" it should be "what does the new standard give us aside from being 'new'?"

    1. Device independence through screen or printable style sheets is the main thing. This can also be achieved server-side ("click here for the printable version of this page"). Although there's another page view when you want a printable version I believe a usable interface is more important (after all, newer techniques for layout such as CSS-P affect the usability in older browsers).

    2. Abstraction is often said about newer standards CSS and HTML. CSS offers more abstraction but the header/footer/template is still part of each HTML page. So the menu can't be changed for different devices (cellphones might want less navigation options for a smaller screen - for example). In practice this header/footer/template requires server-side includes or a templating engine. The abstraction CSS gives is nice, but we all still have to use non-standardised templating mechanisms. This isn't available to the client in a standardised way. So newer standards offer abstraction, but not much.

    3. Even HTML 4.0 wasn't implemented by IE4 and Netscape 4 - so add on another 5-10% to that market. Netscape 4 can't set margins in CSS. IE4 has poor support for HTML 4.0 accessibility. Most browsers support _enough_ of HTML 4.0, but still over 50% of browsers don't support HTML 4.01/XHTML. They support enough of the standard to be usable, but not enough to be compliant.

    I guess my point is that browsers are behind the standards, and browsers are the real world and able to enforce defacto standards. I don't encourage this, but when a browser has turned good (Netscape) there's no harm done is supporting the temporary disobidience of 4 proprietary margin attributes so that the people (who in all don't care about standards) get a better page.

    So push for standards as a political thing but don't get picky on helping browsers built in an era that didn't care about standards. They were all growing up at the time ;)

    1. Re:HTML 3.2 browsers and lesser by sn0wflake · · Score: 1

      Where do you get those browser-statistics? My source is TheCounter.com

    2. Re:HTML 3.2 browsers and lesser by Anonymous Coward · · Score: 0

      Sorry, I should have said that I get browser statistics from my own sites (mostly government)

  20. It's not useless by camusatan · · Score: 1
    I've noticed a lot of comments stating "this is useless, because the browsers won't render it."

    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. 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.