Skip to content

URL parser inconsistency. #11707

@DylanPiercey

Description

@DylanPiercey
  • Version: 7.6.0
  • Platform: macOS
  • Subsystem: url

Currently url is having some issues parsing odd hostnames like so:

new URL('http://.test.com').hostname // -> '0.0.0.9'

Where as in safari, chrome, the native url module and everywhere else this would be parsed as '.test.com'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    whatwg-urlIssues and PRs related to the WHATWG URL implementation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions