- From: fantasai <fantasai.lists@inkedblade.net>
- Date: Mon, 13 Oct 2008 05:34:43 -0700
- To: Anne van Kesteren <annevk@opera.com>
- CC: public-css-testsuite@w3.org
Anne van Kesteren wrote: > > Hi, > > I created a set of tests for the CSS Namespaces Module and reported bugs > on Opera and Firefox for the failures they each had. Unless someone > beats me to it I will probably take a look at Safari next week when I > have access to my MacBook again. > > I checked the tests into dev.w3.org: > > http://dev.w3.org/CSS/css3-namespace-test-suite/ Other tests needed: "A URI string parsed from the URI syntax must be treated as a literal string: as with the STRING syntax, no URI-specific normalization is applied." So a couple good tests here would be - comparing http://... in the source with HTTP://..., in the style sheet - comparing .com in the source with .COM in the style sheet - comparing a straight URL with one that has URI (%) escapes in it "All strings—including the empty string and strings representing invalid URIs—are valid namespace names in @namespace declarations." This can't be tested by matching because XML namespaces must be URIs, but it can be tested by not-matching: overwriting a matching @namespace declaration with a non-matching one that has invalid URI characters in it (like "<>" or something). "If a namespace prefix or default namespace is declared more than once only the last declaration shall be used." Multiple declarations probably deserves its own explicit test. "The prefix of a qualified name may be omitted to indicate that the name belongs to no namespace, i.e. that the namespace name part of the expanded name has no value." Need a test for this one as well. "To form a qualified name in CSS syntax, a namespace prefix that has been declared within scope is prepended to a local name (such as an element or attribute name), separated by a "vertical bar" (|, U+007C)." Should have a test that makes sure an escaped | is not recognized as the namespace prefix separator. ~fantasai
Received on Monday, 13 October 2008 12:35:26 UTC