W3C home > Mailing lists > Public > public-css-testsuite@w3.org > October 2010

Re: font-family-rule-005 pass condition is incorrect

From: Geoffrey Sneddon <gsneddon@opera.com>
Date: Sat, 16 Oct 2010 20:23:53 +0100
Message-ID: <4CB9FBC9.1000307@opera.com>
To: "L. David Baron" <dbaron@dbaron.org>
CC: public-css-testsuite@w3.org
On 15/10/10 22:00, L. David Baron wrote:
> http://test.csswg.org/suites/css2.1/20101001/html4/font-family-rule-005.htm
> says:
>    Test passes if there is the word "PASS" below.
>
> It should also allow there to be an unknown-character glyph.

It's also invalid in XHTML as it relies upon document.write() (as well 
as Element.innerHTML which doesn't have wide support in XHTML). It would 
be better to rewrite the script to something like:

var pass = document.getElementById("test").textContent.charCodeAt(0) === 
127;
document.body.appendChild(document.createTextNode(pass ? "PASS" : "FAIL"));

-- 
Geoffrey Sneddon  Opera Software
<http://gsnedders.com>
<http://opera.com>
Received on Saturday, 16 October 2010 19:24:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 16 October 2010 19:24:39 GMT