conf-reader-201-t

FAIL

raster image of conf-reader-201-t

This test checks that namespace prefixes are handled correctly.

First, a random 20-character string is generated. The string only contains characters that are valid NCName letters. This string is then used as a custom prefix for an 'href' attribute in the XLink namespace. An 'image' element is created and two image references are added, one is in the "http://www.this.is.not.an/xlink" namespace, and one is in the XLink namespace. Only the attribute with the 20-character prefix is actually in the XLink namespace, which means that that link should be the one that is used when rendering the 'image' element. This first subtest is using the setAttributeNS method.

The testcase has passed if after the script execution has taken place these conditions are met: