Specification link: G.7 Conforming SVG Viewers

conform-viewers-01-t ← index → coords-coord-01-t

Tests that contain the draft-watermark are under development and may be incorrectly testing a feature.

# conform-viewers-03-f.svg
SVG Image | PNG Image

## Operator Script

Run the test. No interaction required.

## Pass Criteria

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

- There is one pink image visible.
- The image doesn't show the word "Fail"
- The status message says "No exceptions"

## Test Description

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.

conform-viewers-01-t ← index → coords-coord-01-t