dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.23k stars 1.57k forks source link

dart:html feature request: ipv6 / ipv4 types #15406

Open jtmcdole opened 10 years ago

jtmcdole commented 10 years ago

dart:io has InternetAddress, which has a 'type' field (InternetAddressType). It would be nice to have something similar for validating address in dart:html.

dgrove commented 10 years ago

Removed Type-Defect label. Added Type-Enhancement, Area-HTML, Triaged labels.

sgjesse commented 10 years ago

The InternetAddress in dart:io is mainly an interface for DNS lookup (using the lookup or reverse methods). If the addresses you try to lookup are plain numeric addresses this is just parsed locally (this is still done through a system call an not in code we have written).

In the browser I don't think there is an direct DNS API, so I assume what you are looking of is a parser for numeric addresses.

kevmoo commented 10 years ago

Removed Area-HTML label. Added Area-Library, Library-Html labels.

efortuna commented 10 years ago

is this what you're looking for, codefu? a parser for numeric addresses?


Added NeedsInfo label.

jtmcdole commented 10 years ago

Yes

efortuna commented 10 years ago

Added this to the Later milestone. Added Triaged label.

kasperl commented 10 years ago

Removed this from the Later milestone. Added Oldschool-Milestone-Later label.

kasperl commented 10 years ago

Removed Oldschool-Milestone-Later label.

alan-knight commented 9 years ago

This doesn't seem like something that needs to be in the dart:html library and could be done perfectly well as a package

jtmcdole commented 9 years ago

Sure.