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

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