-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Labels
DomCrawlerGood first issueIdeal for your first contribution! (some Symfony experience may be required)Ideal for your first contribution! (some Symfony experience may be required)
Description
relative links seems not to be handled correct inside Link
the class
I would expect
public function testRelativeLink()
{
$dom = new \DOMDocument();
$dom->loadHTML('<html><a href="../foo">foo</a></html>');
$node = $dom->getElementsByTagName('a')->item(0);
$link = new Link($node, 'http://example.com/bar/');
$this->assertEquals('http://example.com/foo', $link->getUri());
}
Metadata
Metadata
Assignees
Labels
DomCrawlerGood first issueIdeal for your first contribution! (some Symfony experience may be required)Ideal for your first contribution! (some Symfony experience may be required)