dart-lang / html

Dart port of html5lib. For parsing HTML/HTML5 with Dart. Works in the client and on the server.

Home Page:https://pub.dev/packages/html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

<a> Tag get Full link

shuike opened this issue · comments

<a> Tag get Full link
i use attributes["href"] cant get full link
i know Jsoup can use "abs:href" to get full link, but this labrary i can't use "abs:href" to get full link because this will be back null
what should i do to get full link like "http://xxxx.xxx/xxx/xxxx"
Thank's

var document = getElementsByTagName("a").first.attributes["href"]); 
//will back `xxx/xx`, but i need to get full link like http://xxx.xxx/xxx/xx
//Jsoup can use "abs:href" to get full link
commented

Hi @shuike! Any chance you can provide a code example that demonstrates the issue you're seeing? I'm specifically interested in the HTML that you're working with.