Skip to content

Ambiguity with the 1st clause of the "no scheme state" in basic parser. #867

@dannyniu

Description

@dannyniu

What is the issue with the URL Standard?

(from https://url.spec.whatwg.org/#no-scheme-state)
The clause says:

If base is null, or base has an opaque path and c is not U+0023 (#), missing-scheme-non-relative-URL validation error, return failure.

There's an ambiguity as to whether the condition is interpreted as:

  • base === null || (path_is_opaque(base) && c != "#") or
  • (base === null || path_is_opaque(base)) && c != "#"

Since these 2 conditions have different outcome on some input, it is necessary this be clarified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions