Skip to content

A branch of the "ends in a number checker" cannot be hit #865

Description

@domenic

What is the issue with the URL Standard?

https://url.spec.whatwg.org/#ends-in-a-number-checker

  1. If the last item in parts is the empty string, then:

    1. If parts’s size is 1, then return false.

This can only be true if the input is the empty string. However, the empty string is never fed to the "ends in a number checker":

Transforming this branch into an assert might be good. Or, if we want to keep the "ends in a number checker" generic, maybe a note explaining this would be good.

(Found while working on jsdom/whatwg-url#268)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions