- From: Gérard Talbot <css21testsuite@gtalbot.org>
- Date: Tue, 12 Oct 2010 18:41:54 -0700
- 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; http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109/html.html#ID-56360201 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: http://www.gtalbot.org/BrowserBugsSection/css21testsuite/ CSS 2.1 test suite (RC2; October 1st 2010): http://test.csswg.org/suites/css2.1/20101001/html4/toc.html CSS 2.1 test suite contributors: http://test.csswg.org/source/contributors/
Received on Wednesday, 13 October 2010 01:42:35 UTC