W3C home > Mailing lists > Public > www-archive@w3.org > November 2007

Re: HTML syntax (offlist)

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 21 Nov 2007 17:44:21 +0100
To: "Dean Edridge" <dean@55.co.nz>
Cc: www-archive@w3.org
Message-ID: <op.t15h37qr64w2qv@annevk-t60.oslo.opera.com>

On Wed, 21 Nov 2007 17:25:27 +0100, Dean Edridge <dean@55.co.nz> wrote:
> Anne van Kesteren wrote:
>> There is no "the one syntax"
> But there could be ...... *if* there's not already.

In XHTML you want to be allowed to write markup like this:

   <h:html xmlns:h="http://www.w3.org/1999/xhtml" xml:lang="en">

For obvious reasons this doesn't work in HTML.

In HTML you want to write markup like this:

    if(x<y) alert("<danger>")

For obvious reasons this doens't work in XHTML. Restricting either one so  
that in theory you can copy and paste between them doesn't seem worth it.

> It's not just what I wish to do in the future. It's about the whole  
> world, it's about all the documents that will be circulating out there.  
> They will be incompatible with each other.

They already are. However, on a language level they are not incompatible.

> How on earth do you think that HTML5 and XHTML5 will live on the web at  
> the same time without some type of increased normalisation between the  
> two?

By using separate consumers that handle each in an appropriate way. You  
need that anyway to deal with non-conforming HTML and XHTML using XML  

Anne van Kesteren
Received on Wednesday, 21 November 2007 16:44:20 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:33:18 UTC