Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CheckHyphens isn't set to beStrict #820

Open
hsivonen opened this issue Feb 5, 2024 · 0 comments
Open

CheckHyphens isn't set to beStrict #820

hsivonen opened this issue Feb 5, 2024 · 0 comments
Labels
topic: idna topic: validation Pertaining to the rules for URL writing and validity (as opposed to parsing)

Comments

@hsivonen
Copy link
Member

hsivonen commented Feb 5, 2024

What is the issue with the URL Standard?

https://url.spec.whatwg.org/#concept-domain-to-ascii has a beStrict flag to validation. This flag affects the UseSTD3ASCIIRules and VerifyDnsLength flags for UTS 46 processing, but don't affect the CheckHyphens flag. AFAICT, STD3 conformance requires setting all three to true, because UseSTD3ASCIIRules enables a non-positional deny list, but CheckHyphens also denies the hyphen as the first or last character of a label.

To the extent validation tries to check for STD3 conformance, it's strange not to also set CheckHyphens to beStrict.

@hsivonen hsivonen added topic: idna topic: validation Pertaining to the rules for URL writing and validity (as opposed to parsing) labels Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: idna topic: validation Pertaining to the rules for URL writing and validity (as opposed to parsing)
Development

No branches or pull requests

1 participant