W3C home > Mailing lists > Public > public-mwts@w3.org > April 2008

Fwd: Testing for XHTML support

From: Wilhelm Joys Andersen <wilhelmja@opera.com>
Date: Wed, 09 Apr 2008 13:44:54 +0200
To: public-mwts@w3.org
Message-ID: <op.t9cdk4dcm3w6te@kugalskapet>

Hi,

Based on feedback from a co-worker (see below), I have added a proposed
new XHTML test:

    http://dev.w3.org/2008/mobile-test/new-xhtml.xhtml


------- Forwarded message -------
From: Tarquin (Mark) Wilton-Jones
Subject: Testing for XHTML support

The current test for XHTML support simply checks if the browser does not
die when faced with the XHTML mime type. Browsers that treat it as HTML
will appear to pass even though they do not actually support XHTML. While
it is very hard to check if they produce an XML error if parsing fails
(which is what they should do if they support X[HT]ML), it is easy enough
to test for the other parts of XHTML, such as case sensitivity and
namespaces.

Case sensitivity:
html, body { background-color: green; }
HTML, BODY { background-color: red; }

Simple namespace support (without needing namespaced selectors in CSS):
attached namespace.xhtml (also tests case sensitivity)

Complex namespace support (needing namespaced selectors in CSS):
attached complexnamespace.xhtml (also tests case sensitivity and several
other possible hacks instead of real support)

-- 
Wilhelm Joys Andersen
Core QA, Opera Software
Received on Wednesday, 9 April 2008 11:46:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 April 2008 11:46:04 GMT