W3C home > Mailing lists > Public > uri@w3.org > July 2013

Fragment identifiers in data URIs

From: Manuel Strehl <svg@manuel-strehl.de>
Date: Thu, 18 Jul 2013 16:19:45 +0200 (CEST)
Message-ID: <49175.188.193.92.48.1374157185.squirrel@xa8.serverdomain.org>
To: uri@w3.org


Hello,

I tried to find documentation about fragment identifiers
for data URIs, but haven't discovered any so far. RFC 2397 seems to be
quiet about the very possibility to have such identifiers. It's only
noting, that "data" is specified as "uric" from 2396
(which happens to exclude "#"). Therefore it seems, the behavior
of this is undefined:
   
data:<h1>%20id=%22FOO%22>ABC</h1>#FOO
I tested Firefox and Chrome, and both react differently, Firefox cutting
off the data: URI at the hash, Chrome just outputting it and the the
rest.

A normative rule would be great. One use case: SVG
filters embedded in CSS stylesheets. CSS filters can be used like this:
    filter: url(svg-url#element-id);
But we cannot address them, when the SVG is embedded as data URI:
    filter:
url(data:image/svg+xml,.....id="FOO".....#FOO);
Cheers,
 Manuel
Received on Thursday, 18 July 2013 14:20:08 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:16 UTC