web-platform-tests / web-platform-tests/rfcs

Should we allow .invalid TLD in tests for guaranteed-nonexistent hostnames?

Open
#236 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
110
Forks
90
PR merge metrics
No merged PRs in 30d

Description

Currently, tests that need a guaranteed-nonexistent hostname are meant to use the nonexistent subdomain under the WPT-controlled domains (typically, nonexistent.web-platform.test).

However, RFC 6761 §6.4 reserves the .invalid TLD specifically for this purpose — names under .invalid SHOULD always return a negative response.

There is already some usage of .invalid in tests today, e.g.:

But: there's no explicit policy permitting it, and the lint rules don't forbid it.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading RFC 6761 §6.4, then review the listed Web Platform Tests and the current lint rules for hostname usage. Determine whether the project should explicitly permit .invalid and whether its policy or lint documentation needs updating; done means the policy question has a documented resolution.

Written by the indexing model from the issue text.

Assessment

Domain
documentation, testing
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.