Re: New elements vs. Trident

On Sep 16, 2007, at 10:01 AM, Dean Edwards wrote:

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

Namespace hacks are certainly an appealing option, if they can avoid  
the need for script. But how would you make this work in both IE and  
in other browsers (including newer browsers that actually support the  
hypothetical newelement)? Would you conditionally serve as HTML to IE  
and XHTML to other browsers?

Regards,
Maciej

Received on Monday, 17 September 2007 00:08:24 UTC