Skip to content

HtmlAnchorElement members duplicate Uri members #2711

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DartBot opened this issue Apr 24, 2012 · 2 comments
Closed

HtmlAnchorElement members duplicate Uri members #2711

DartBot opened this issue Apr 24, 2012 · 2 comments
Labels
closed-as-intended Closed as the reported issue is expected behavior

Comments

@DartBot
Copy link

DartBot commented Apr 24, 2012

This issue was originally filed by @seaneagan


The following members of HtmlAnchorElement all duplicate members of dart:uri's Uri:

hostName
host
hash
pathname
port
protocol
search
origin ???

They ought to be removed, since you can just do:

final uri = new Uri.fromString(anchor.href);
print(uri.scheme);
// etc.

@madsager
Copy link
Contributor

Added Area-DOM, Triaged labels.

@vsmenon
Copy link
Member

vsmenon commented Jul 16, 2012

Not sure it's worth taking this out. It's arguably still convenient to have them on the HtmlAnchorElement. It's also more efficient if you only want one.


Added AsDesigned label.

@DartBot DartBot added Type-Defect closed-as-intended Closed as the reported issue is expected behavior labels Jul 16, 2012
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-as-intended Closed as the reported issue is expected behavior
Projects
None yet
Development

No branches or pull requests

3 participants