W3C home > Mailing lists > Public > www-international@w3.org > January to March 2013

Re: I18N-ISSUE-247: Clarify interpretation of line breaks when calculating storage size [ITS-20]

From: Anne van Kesteren <annevk@annevk.nl>
Date: Fri, 29 Mar 2013 12:55:48 +0000
Message-ID: <CADnb78iHJZ8bt-05wL0Aa_9S-E=t7naGu=+kjYCsE8xkO8ZPng@mail.gmail.com>
To: Jirka Kosek <jirka@kosek.cz>
Cc: "public-multilingualweb-lt@w3.org" <public-multilingualweb-lt@w3.org>, www-international@w3.org
On Fri, Mar 29, 2013 at 12:42 PM, Jirka Kosek <jirka@kosek.cz> wrote:
> I probably wasn't understanding what you mean by  &#x0D; in your
> original message. Of course plain  &#x0D will be considered as a line
> break.

No, &#x0D; ends up as U+000D in the DOM, not as U+000A:

data:text/xml,<html
xmlns="http://www.w3.org/1999/xhtml"><i>&%23x0D;</i><script>alert(encodeURI(document.querySelector("i").textContent))</script></html>

A raw U+000D does become U+000A:

data:text/xml,<html
xmlns="http://www.w3.org/1999/xhtml"><i>%0D</i><script>alert(encodeURI(document.querySelector("i").textContent))</script></html>


-- 
http://annevankesteren.nl/
Received on Friday, 29 March 2013 12:56:17 UTC

This archive was generated by hypermail 2.3.1 : Friday, 29 March 2013 12:56:18 UTC