Re: New elements vs. Trident

Maciej Stachowiak wrote:
> Something like this:
> 
> <newelement><em>some text</em></newelement>
> 
> Creates a DOM like this:
> 
> BODY
>     NEWELEMENT
>     EM
>         #text: some text
>     /NEWELEMENT
> 

> However, it would be nice to avoid the need for such script hacks. Can 
> anyone from Microsoft comment on the possibility of fixing the handling 
> of unknown elements in IE, even well in advance of broader 
> implementation of HTML5?

For XHTML you can mark up new elements like this:

<html:newelement><em>some text</em></html:newelement>

-dean

Received on Sunday, 16 September 2007 23:36:56 UTC