Re: HTML syntax (offlist)

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:

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

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


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

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