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

Re: floats-137.xht is broken

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Tue, 12 Oct 2010 18:41:54 -0700
Message-ID: <e599f6279c58966795537a50640814b7.squirrel@cp3.shieldhost.com>
To: "Simon Fraser" <smfr@me.com>
Cc: public-css-testsuite@w3.org

> http://test.csswg.org/suites/css2.1/20101001/xhtml1/floats-137.xht
>    var body = document.getElementsByTagName('BODY')[0];
> fails because the tag name match is case sensitive in XHTML.
> Simon

It's also inefficient in many ways. For starters,

  <script type="text/javascript">
   var body = document.getElementsByTagName('BODY')[0];

could be replaced with

  <script type="text/javascript">
   var body = document.body;


as there is only 1 body per HTML document, so no need to create a
collection and iterate through them.

It's also missing the meta flag ahem.

<meta name="flags" content="animated"/>

should be

<meta name="flags" content="ahem animated"/>

Ditto for the HTML4 version.

regards, Gérard
Contributions to the CSS 2.1 test suite:

CSS 2.1 test suite (RC2; October 1st 2010):

CSS 2.1 test suite contributors:
Received on Wednesday, 13 October 2010 01:42:35 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:13:21 UTC