> 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 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 13 October 2010 01:42:44 GMT