File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -99,12 +99,11 @@ function validateLabel(label, {
9999 }
100100
101101 // "4. If not CheckHyphens, the label must not begin with “xn--”."
102- // Disabled while we figure out https://github.com/whatwg/url/issues/803.
103- // if (!checkHyphens) {
104- // if (label.startsWith("xn--")) {
105- // return false;
106- // }
107- // }
102+ if ( ! checkHyphens ) {
103+ if ( label . startsWith ( "xn--" ) ) {
104+ return false ;
105+ }
106+ }
108107
109108 // "5. The label must not contain a U+002E ( . ) FULL STOP."
110109 if ( label . includes ( "." ) ) {
Original file line number Diff line number Diff line change @@ -27,6 +27,11 @@ describe("ToASCII", () => {
2727 continue ;
2828 }
2929
30+ if ( testCase . urlStandardOnly ) {
31+ // This test isn't valid for just TR46 ToASCII; it relies on behavior from the URL Standard's "domain to ASCII".
32+ continue ;
33+ }
34+
3035 let description = testCase . input ;
3136 if ( testCase . comment ) {
3237 description += ` (${ testCase . comment } )` ;
You can’t perform that action at this time.
0 commit comments