Please send feedback to julian.reschke@gmx.de.
Colors -- Red: Failure, Green: Pass, Yellow: Warning, Grey: Not Supported
Score -- Passes: 2 points, Warning: 1 point, in percent of possible points (this should be updated to count optional features differently)
Test Case | Firefox 30 | Microsoft IE 11 | Safari 5.1 | Konqueror 4.7.2 | Google Chrome 35 | |
---|---|---|---|---|---|---|
Summary | Score: 87 | Score: 8 | Score: 71 | Score: 48 | Score: 67 | |
plain text | simple | pass | unsupported | pass | pass | pass |
simplewfrag | pass | unsupported | fail (treats fragment as part of the payload (see Webkit bug 68089)) | fail (treats fragment as part of the payload) | fail (treats fragment as part of the payload (see Chrome Issue 123004)) | |
defaultencoding1 | pass (uses ISO-8859-1) | unsupported | pass (uses ISO-8859-1) | warn (tries to decode as UTF-8, shows replacement character) | pass (uses ISO-8859-1) | |
defaultencoding2 | pass (uses ISO-8859-1, so displays two characters) | unsupported | pass (uses ISO-8859-1, so displays two characters) | pass (uses UTF-8) | pass (uses ISO-8859-1, so displays two characters) | |
text/plain charset parsing | simple-utf8-nodec | pass (apparently sniffs UTF-8) | unsupported | pass (apparently handled with ISO-8859-1 default) | pass (apparently handled with UTF-8 default) | pass (apparently handled with ISO-8859-1 default) |
simple-iso8859-1-nodec | pass (apparently sniffs ISO-8859-1) | unsupported | pass (apparently handled with ISO-8859-1 default) | pass (apparently handled with UTF-8 default) | pass (apparently handled with ISO-8859-1 default) | |
simple-iso8859-7-nodec | pass (apparently sniffs ISO-8859-1) | unsupported | pass (apparently handled with ISO-8859-1 default) | pass (apparently handled with UTF-8 default) | pass (apparently handled with ISO-8859-1 default) | |
simple-utf8-dec | pass | unsupported | pass | pass | pass | |
simple-iso8859-1-dec | pass | unsupported | pass | fail (apparently handled with UTF-8 default) | pass | |
simple-iso8859-7-dec | pass | unsupported | pass | fail (apparently handled with UTF-8 default) | pass | |
simple-utf8-dec-sq | pass (apparently sniffs UTF-8) | unsupported | pass (apparently handled with ISO-8859-1 default) | pass (apparently sniffs UTF-8) | pass (apparently handled with ISO-8859-1 default) | |
simple-iso8859-1-dec-sq | pass (apparently sniffs ISO-8859-1) | unsupported | pass (apparently handled with ISO-8859-1 default) | fail (apparently handled with UTF-8 default) | pass (apparently handled with ISO-8859-1 default) | |
simple-iso8859-7-dec-sq | pass (apparently sniffs ISO-8859-1) | unsupported | pass (apparently handled with ISO-8859-1 default) | fail (apparently handled with UTF-8 default) | pass (apparently handled with ISO-8859-1 default) | |
simple-utf8-dec-dq | pass | unsupported | pass | pass | fail (decoded as ISO-8859-1) | |
simple-iso8859-1-dec-dq | pass | unsupported | pass | fail (apparently handled with UTF-8 default) | pass | |
simple-iso8859-7-dec-dq | fail (decoded as ISO-8859-1 (see Mozilla Bug 746550)) | unsupported | pass | fail (apparently handled with UTF-8 default) | fail (decoded as as ISO-8859-1) | |
simple-utf8-dec-dq-escaped | pass | unsupported | fail (treated as ISO-8859-1) | pass | fail (treated as ISO-8859-1) | |
simple-iso8859-1-dec-dq-escaped | pass | unsupported | pass | fail (apparently handled with UTF-8 default) | pass | |
simple-iso8859-7-dec-dq-escaped | fail (decoded as ISO-8859-1 (see Mozilla Bug 746550)) | unsupported | fail (treated as ISO-8859-1) | fail (apparently handled with UTF-8 default) | fail (treated as ISO-8859-1) | |
HTML | simplenofrag | pass | unsupported | pass | pass | pass |
simplefrag | pass | unsupported | fail (treats fragment as part of the payload) | fail (treats fragment as part of the payload) | fail (treats fragment as part of the payload) | |
SVG | svg | pass | pass | fail (considers the fragid as content and fails with XML WF error) | fail (considers the fragid as content and fails with XML WF error) | fail (considers the fragid as content and fails with XML WF error (but works when entered into the location bar)) |
extension parameters | ext-simple | pass | pass | pass | pass | pass |
ext-simple-qs | fail (fails to parse quoted-string value (see Mozilla Bug 746550)) | fail (fails to parse quoted-string value) | fail (fails to parse quoted-string value) | pass | fail (fails to parse quoted-string value) | |
base64param | pass | unsupported | fail (get's confused and assumes a "base64" extension flag) | pass | ||
base64extwrongpos | warn
(detects base64 encoding (but see | unsupported | warn (detects base64 encoding) | warn (detects base64 encoding) |
Various tests for data URIs using the default content type of text/plain;charset=US-ASCII.
Result for this UA:
URI: data:,test#foo
Test Results | |
---|---|
FF30 | pass |
MSIE11 | unsupported |
Safari | fail (treats fragment as part of the payload (see Webkit bug 68089)) |
Konq | fail (treats fragment as part of the payload) |
Chrome | fail (treats fragment as part of the payload (see Chrome Issue 123004)) |
Result for this UA:
URI: data:,test%20%a3%20pound%20sign
Test Results | |
---|---|
FF30 | pass (uses ISO-8859-1) |
MSIE11 | unsupported |
Safari | pass (uses ISO-8859-1) |
Konq | warn (tries to decode as UTF-8, shows replacement character) |
Chrome | pass (uses ISO-8859-1) |
...containing a £ sign encoded in ISO-8859-1
Result for this UA:
URI: data:,test%20%c2%a3%20pound%20sign
Test Results | |
---|---|
FF30 | pass (uses ISO-8859-1, so displays two characters) |
MSIE11 | unsupported |
Safari | pass (uses ISO-8859-1, so displays two characters) |
Konq | pass (uses UTF-8) |
Chrome | pass (uses ISO-8859-1, so displays two characters) |
...containing a £ sign encoded in UTF-8
Result for this UA:
Various tests for data URIs using text/plain with variations of charset declarations.
URI: data:text/plain,test%20%c2%a3%20pound%20sign
Test Results | |
---|---|
FF30 | pass (apparently sniffs UTF-8) |
MSIE11 | unsupported |
Safari | pass (apparently handled with ISO-8859-1 default) |
Konq | pass (apparently handled with UTF-8 default) |
Chrome | pass (apparently handled with ISO-8859-1 default) |
text/plain with no charset (default should be US-ASCII), UTF-8 encoded text
Result for this UA:
URI: data:text/plain,test%20%a3%20pound%20sign
Test Results | |
---|---|
FF30 | pass (apparently sniffs ISO-8859-1) |
MSIE11 | unsupported |
Safari | pass (apparently handled with ISO-8859-1 default) |
Konq | pass (apparently handled with UTF-8 default) |
Chrome | pass (apparently handled with ISO-8859-1 default) |
text/plain with no charset (default should be US-ASCII), ISO-8859-1 encoded text
Result for this UA:
URI: data:text/plain,test%20%d3%20sigma
Test Results | |
---|---|
FF30 | pass (apparently sniffs ISO-8859-1) |
MSIE11 | unsupported |
Safari | pass (apparently handled with ISO-8859-1 default) |
Konq | pass (apparently handled with UTF-8 default) |
Chrome | pass (apparently handled with ISO-8859-1 default) |
text/plain with no charset (default should be US-ASCII), ISO-8859-7 encoded text
Result for this UA:
URI: data:text/plain;charset=utf-8,test%20%c2%a3%20pound%20sign
Test Results | |
---|---|
FF30 | pass |
MSIE11 | unsupported |
Safari | pass |
Konq | pass |
Chrome | pass |
text/plain charset utf-8, UTF-8 encoded text
Result for this UA:
URI: data:text/plain;charset=iso-8859-1,test%20%a3%20pound%20sign
Test Results | |
---|---|
FF30 | pass |
MSIE11 | unsupported |
Safari | pass |
Konq | fail (apparently handled with UTF-8 default) |
Chrome | pass |
text/plain charset iso-8859-1, ISO-8859-1 encoded text
Result for this UA:
URI: data:text/plain;charset=iso-8859-7,test%20%d3%20sigma
Test Results | |
---|---|
FF30 | pass |
MSIE11 | unsupported |
Safari | pass |
Konq | fail (apparently handled with UTF-8 default) |
Chrome | pass |
text/plain charset iso-8859-7, ISO-8859-7 encoded text
Result for this UA:
URI: data:text/plain;charset=%27utf-8%27,test%20%c2%a3%20pound%20sign
Test Results | |
---|---|
FF30 | pass (apparently sniffs UTF-8) |
MSIE11 | unsupported |
Safari | pass (apparently handled with ISO-8859-1 default) |
Konq | pass (apparently sniffs UTF-8) |
Chrome | pass (apparently handled with ISO-8859-1 default) |
text/plain charset 'utf-8', UTF-8 encoded text
Result for this UA:
URI: data:text/plain;charset=%27iso-8859-1%27,test%20%a3%20pound%20sign
Test Results | |
---|---|
FF30 | pass (apparently sniffs ISO-8859-1) |
MSIE11 | unsupported |
Safari | pass (apparently handled with ISO-8859-1 default) |
Konq | fail (apparently handled with UTF-8 default) |
Chrome | pass (apparently handled with ISO-8859-1 default) |
text/plain charset 'iso-8859-1', ISO-8859-1 encoded text
Result for this UA:
URI: data:text/plain;charset=%27iso-8859-7%27,test%20%d3%20sigma
Test Results | |
---|---|
FF30 | pass (apparently sniffs ISO-8859-1) |
MSIE11 | unsupported |
Safari | pass (apparently handled with ISO-8859-1 default) |
Konq | fail (apparently handled with UTF-8 default) |
Chrome | pass (apparently handled with ISO-8859-1 default) |
text/plain charset 'iso-8859-7', ISO-8859-7 encoded text
Result for this UA:
URI: data:text/plain;charset=%22utf-8%22,test%20%c2%a3%20pound%20sign
Test Results | |
---|---|
FF30 | pass |
MSIE11 | unsupported |
Safari | pass |
Konq | pass |
Chrome | fail (decoded as ISO-8859-1) |
text/plain charset "utf-8", UTF-8 encoded text
Result for this UA:
URI: data:text/plain;charset=%22iso-8859-1%22,test%20%a3%20pound%20sign
Test Results | |
---|---|
FF30 | pass |
MSIE11 | unsupported |
Safari | pass |
Konq | fail (apparently handled with UTF-8 default) |
Chrome | pass |
text/plain charset "iso-8859-1", ISO-8859-1 encoded text
Result for this UA:
URI: data:text/plain;charset=%22iso-8859-7%22,test%20%d3%20sigma
Test Results | |
---|---|
FF30 | fail (decoded as ISO-8859-1 (see Mozilla Bug 746550)) |
MSIE11 | unsupported |
Safari | pass |
Konq | fail (apparently handled with UTF-8 default) |
Chrome | fail (decoded as as ISO-8859-1) |
text/plain charset "iso-8859-7", ISO-8859-7 encoded text
Result for this UA:
URI: data:text/plain;charset=%22%5cu%5ct%5cf%5c-%5c8%22,test%20%c2%a3%20pound%20sign
Test Results | |
---|---|
FF30 | pass |
MSIE11 | unsupported |
Safari | fail (treated as ISO-8859-1) |
Konq | pass |
Chrome | fail (treated as ISO-8859-1) |
text/plain charset "\u\t\f\-\8", UTF-8 encoded text
Result for this UA:
URI: data:text/plain;charset=%22%5ci%5cs%5co%5c-%5c8%5c8%5c5%5c9%5c-%5c1%22,test%20%a3%20pound%20sign
Test Results | |
---|---|
FF30 | pass |
MSIE11 | unsupported |
Safari | pass |
Konq | fail (apparently handled with UTF-8 default) |
Chrome | pass |
text/plain charset "\i\s\o\-\8\8\5\9\-\1", ISO-8859-1 encoded text
Result for this UA:
URI: data:text/plain;charset=%22%5ci%5cs%5co%5c-%5c8%5c8%5c5%5c9%5c-%5c7%22,test%20%d3%20sigma
Test Results | |
---|---|
FF30 | fail (decoded as ISO-8859-1 (see Mozilla Bug 746550)) |
MSIE11 | unsupported |
Safari | fail (treated as ISO-8859-1) |
Konq | fail (apparently handled with UTF-8 default) |
Chrome | fail (treated as ISO-8859-1) |
text/plain charset "\i\s\o\-\8\8\5\9\-\7", ISO-8859-7 encoded text
Result for this UA:
Various tests for data URIs using text/html.
URI: data:text/html,%3Cp%3Efoo%3C%2Fp%3E
Test Results | |
---|---|
FF30 | pass |
MSIE11 | unsupported |
Safari | pass |
Konq | pass |
Chrome | pass |
Result for this UA:
URI: data:text/html,%3Cp%3Efoo%3C%2Fp%3E#bar
Test Results | |
---|---|
FF30 | pass |
MSIE11 | unsupported |
Safari | fail (treats fragment as part of the payload) |
Konq | fail (treats fragment as part of the payload) |
Chrome | fail (treats fragment as part of the payload) |
Result for this UA:
Various tests for data URIs using image/svg+xml.
URI: data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%3E%0A%20%20%3Ccircle%20cx%3D%22100%22%20cy%3D%22100%22%20r%3D%2225%22%20stroke%3D%22black%22%20stroke-width%3D%221%22%20fill%3D%22green%22%2F%3E%0A%3C%2Fsvg%3E%0A#bar
Test Results | |
---|---|
FF30 | pass |
MSIE11 | pass |
Safari | fail (considers the fragid as content and fails with XML WF error) |
Konq | fail (considers the fragid as content and fails with XML WF error) |
Chrome | fail (considers the fragid as content and fails with XML WF error (but works when entered into the location bar)) |
...an SVG resource with a fragment identifier
Result for this UA:
Various tests for data URIs using media type extensions
URI: data:image/svg+xml;foo=bar,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%3E%0A%20%20%3Ccircle%20cx%3D%22100%22%20cy%3D%22100%22%20r%3D%2225%22%20stroke%3D%22black%22%20stroke-width%3D%221%22%20fill%3D%22green%22%2F%3E%0A%3C%2Fsvg%3E%0A
Test Results | |
---|---|
FF30 | pass |
MSIE11 | pass |
Safari | pass |
Konq | pass |
Chrome | pass |
Result for this UA:
URI: data:image/svg+xml;foo=%22bar,bar%22,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%3E%0A%20%20%3Ccircle%20cx%3D%22100%22%20cy%3D%22100%22%20r%3D%2225%22%20stroke%3D%22black%22%20stroke-width%3D%221%22%20fill%3D%22green%22%2F%3E%0A%3C%2Fsvg%3E%0A
Test Results | |
---|---|
FF30 | fail (fails to parse quoted-string value (see Mozilla Bug 746550)) |
MSIE11 | fail (fails to parse quoted-string value) |
Safari | fail (fails to parse quoted-string value) |
Konq | pass |
Chrome | fail (fails to parse quoted-string value) |
Result for this UA:
URI: data:text/plain;base64=paramvalue,test
Test Results | |
---|---|
FF30 | pass |
MSIE11 | unsupported |
Safari | fail (get's confused and assumes a "base64" extension flag) |
Chrome | pass |
...containing a parameter called "base64". Should be ignored, as it's not a valid "base64" extension flag per RFC 2397.
Result for this UA:
URI: data:text/plain;base64;x=y,dGVzdA0K
Test Results | |
---|---|
FF30 | warn
(detects base64 encoding (but see |
MSIE11 | unsupported |
Safari | warn (detects base64 encoding) |
Chrome | warn (detects base64 encoding) |
"base64" encoded text "test", but "base64" extension in wrong position
Result for this UA:
Both this document and the indiviual test "scripts" are generated from one single XML source (datauri.xml), using an XSLT2 transformation (datauri.xslt).
To generate the files, an XSLT2 processor such as Saxon 9 is needed. Copy both files into an empty directory, then run:
saxon9 datauri.xml datauri.xslt > index.html