position-fixed-006 is invalid in XHTML

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 UTC