Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: LayoutTests/fast/forms/form-data-encoding-3.html

Issue 19845004: Do not normalize into NFC the values of form fields (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add normalizeAndEncode() without memory safety problem Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 <meta http-equiv="content-type" content="text/html; charset=utf-8">
4 <title>Charsets and submitting forms</title>
5 </head>
6 <body>
7 <form action="?" name="f">
8 <!-- This example comes from page 9 of the SBL Hebrew Font User Manual http://w ww.sbl-site.org/Fonts/SBLHebrewManualv1.5.pdf
9 "The final four characters of this word are correctly encoded in the order lamed + patah + hiriq + final mem,
10 and the word is correctly displayed ...; however,the faulty canonical comb ining classes
11 for patah and hiriq in Unicode cause hiriq to always precede patah when re ordering due to
12 normalisation is applied. The resulting sequence lamed + hiriq + patah + f inal mem is both
13 textually incorrect and cannot be correctly displayed by the SBL Hebrew fo nt" -->
14 <input type="hidden" name="q" value="&#1497;&#1456;&#1512;&#1493;&#1468;&#1513; &#1464;&#1473;&#1500;&#1463;&#1460;&#1501;" style="font: 40pt 'SBL Hebrew';"><br >
15 </form>
16 <script>
17 if (window.testRunner) {
18 testRunner.dumpAsText();
19 testRunner.waitUntilDone();
20 }
21
22 if (document.URL.substring(0, 4) == "file") {
23
24 if (document.URL.indexOf('?') == -1) {
25 document.f.submit();
26
27 } else {
28 if (unescape(document.URL.substring(document.URL.indexOf('?') + 1, docum ent.URL.length)) == unescape("q=%D7%99%D6%B0%D7%A8%D7%95%D6%BC%D7%A9%D6%B8%D7%81 %D7%9C%D6%B7%D6%B4%D7%9D"))
29 document.write("<p>Success</p>");
30 else
31 document.write("<p>Failure</p>");
32
33 if (window.testRunner)
34 testRunner.notifyDone();
35 }
36
37 } else {
38
39 document.write("<p>This test doesn't work directly from bugzilla, please sav e it to a local file first.</p>");
40 }
41 </script>
42 </body>
43 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/form-data-encoding-2.html ('k') | LayoutTests/fast/forms/form-data-encoding-3-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698