IDNA: add a couple interesting ToASCII cases
Identified in https://github.com/whatwg/url/issues/341 by karwa.
diff --git a/url/resources/toascii.json b/url/resources/toascii.json
index b9ceea3..4cb41e9 100644
--- a/url/resources/toascii.json
+++ b/url/resources/toascii.json
@@ -62,6 +62,10 @@
"output": null
},
{
+ "input": "xn--ls8h=",
+ "output": null
+ },
+ {
"comment": "Invalid Punycode (contains non-ASCII character)",
"input": "xn--tešla",
"output": null
@@ -172,5 +176,18 @@
{
"input": "xn--",
"output": null
+ },
+ {
+ "comment": "Interesting UseSTD3ASCIIRules=false cases",
+ "input": "≠",
+ "output": "xn--1ch"
+ },
+ {
+ "input": "≮",
+ "output": "xn--gdh"
+ },
+ {
+ "input": "≯",
+ "output": "xn--hdh"
}
]