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

position-fixed-006 is invalid in XHTML

From: L. David Baron <dbaron@dbaron.org>
Date: Sat, 16 Oct 2010 12:56:30 -0700
To: Geoffrey Sneddon <gsneddon@opera.com>
Cc: public-css-testsuite@w3.org
Message-ID: <20101016195630.GA18033@pickering.dbaron.org>
On Saturday 2010-10-16 20:23 +0100, Geoffrey Sneddon wrote:
> 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"));

http://test.csswg.org/suites/css2.1/20101001/xhtml1/position-fixed-006.xht
has the same problem and should be fixed in the same way.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Saturday, 16 October 2010 19:57:15 GMT

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