--- In svg-developers@yahoogroups.com, "John C. Turnbull"
<[EMAIL PROTECTED]> wrote:
>
> I don’t know much about XHTML (other than that it is well-formed
HTML) so how does a browser go about rendering it?  I mean can you do
everything you can do in HTML with XHTML?  That is, is it a perfectly
reasonable thing to do to represent an entire web page in XHTML and
not be limited in some way?
> 

Functionally, XHTML is nearly equivalent to HTML.  There are some
gotchas though.  For instance,

- though browsers support it, the 'target' attribute on links is not
part of XHTML 1.x (so your XHTML will not be compliant). 
Additionally, other HTML deprecated attributes/elements are similarly
not compliant (meaning your browser will render and function on them
as they would in HTML, but validators will complain).

However you should be aware that publishing in XHTML has the following
drawbacks:

- IE does not support XHTML (the MIME type application/xhtml+xml) so
you will need to use some server-side content negotiation (look if the
HTTP_ACCEPT header supports that MIME type) and switch to text/html
for IE users or they will be left out in the cold
- XHTML is XML, so processing will stop if you've made any errors in
your page (the entire page will not render, in Firefox this is called
a 'Yellow Screen Of Death').  This is good to detect errors if you're
publishing a 'static' site, but if you have dynamic or
user-contributed content it is much trickier

Regards,
Jeff Schiller


------------------------------------

-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to