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

Documentation for IDNA configuration options should explain use cases #898

Open
1 task done
hsivonen opened this issue Jan 24, 2024 · 0 comments
Open
1 task done

Comments

@hsivonen
Copy link
Contributor

  • Note that this crate implements the URL Standard not RFC 1738 or RFC 3986

Describe the bug

The docs for idna::Config don't explain when and why it might be appropriate not to use the default options. Also, idna::domain_to_ascii_strict does not explain when it's appropriate to call in instead of calling the non-strict variant.

The docs should explain the use cases so that callers don't introduce unwanted (from the user perspective) inability to process some names.

The WHATWG URL Standard's beStrict option is only for checking content for conformance, but tools that need to deal with the names out there shouldn't be setting beStrict and the corresponding idna crate options.

(My context for filing this is that I'm investigating the possibility of developing a build-time option for the idna crate to use icu_normalizer to perform a subset of UTS 46 processing, and I'm trying to figure out what features that are unused in a Web browser are actually relevant to the wider crate ecosystem.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant