[whatwg] The <pic> element
Anselm Hannemann Web Development
info at anselm-hannemann.com
Sun Jun 3 23:05:23 PDT 2012
Am 01.06.2012 um 21:01 schrieb Julian Reschke:
> On 2012-06-01 20:24, Kornel Lesiński wrote:
>>>> If there are commas or backslashes in the URL they must be escaped with `\`.
>>> This is another problem why I would separate the diff. srces.
>>> Escaping an URL is not something that should be necessary in HTML I think.
>> I agree, it's ugly, but otherwise you get ambiguous syntax for entries without descriptor or media query.
>> I thought about specifying some magic, like ignoring trailing comma in URL, but all such magical solutions have surprising edge cases. Explicit escaping is at least easy to comprehend.
> An alternative is to pick different delimiters. See, for instance, <http://tools.ietf.org/html/rfc2295#section-8.3>.
> Best regards, Julian
I also would like to see another delimiting syntax which is clearer. What about JSON-syntax or just " | "?
I mean a backslash is not that common in a URL but commas are more and more and you all know that escaping is no fun.
So we should really try to avoid this.
More information about the whatwg