W3C home > Mailing lists > Public > public-html@w3.org > September 2007

Re: New elements vs. Trident

From: Dean Edwards <dean@edwards.name>
Date: Mon, 17 Sep 2007 01:20:59 +0100
Message-ID: <46EDC86B.90706@edwards.name>
To: Robert Burns <rob@robburns.com>
CC: Maciej Stachowiak <mjs@apple.com>, "public-html@w3.org WG" <public-html@w3.org>

Robert Burns wrote:
>> For XHTML you can mark up new elements like this:
>>
>> <html:newelement><em>some text</em></html:newelement>
> 
> Is that for IE? Or does that work in any browser (specifically Firefox)?
> 

It will work cross-browser if it is marked up as above.

To style the new element you have to use namespace aware CSS. 
Annoyingly, IE requires the namespace delimiter to be escaped:

html\:newelement {
  /* some style */
}

Cross-browser styling looks like this:

html\:newelement, newelement {
  /* some style */
}

-dean
Received on Monday, 17 September 2007 00:17:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:07 GMT