Lines Matching refs:href

173             if ($element->hasAttribute('href')) {
174 $base = $this->registry->call(Misc::class, 'absolutize_url', [trim($element->getAttribute('href')), $this->http_base]);
211 if ($link->hasAttribute('href') && $link->hasAttribute('rel')) {
216 $href = $this->registry->call(Misc::class, 'absolutize_url', [trim($link->getAttribute('href')), $this->base]);
218 $href = $this->registry->call(Misc::class, 'absolutize_url', [trim($link->getAttribute('href')), $this->http_base]);
220 if ($href === false) {
224 if (!in_array($href, $done) && in_array('feed', $rel) || (in_array('alternate', $rel) && !in_array('stylesheet', $rel) && $link->hasAttribute('type') && in_array(strtolower($this->registry->call(Misc::class, 'parse_mime', [$link->getAttribute('type')])), ['text/html', 'application/rss+xml', 'application/atom+xml'])) && !isset($feeds[$href])) {
229 $feed = $this->registry->create(File::class, [$href, $this->timeout, 5, $headers, $this->useragent, $this->force_fsockopen, $this->curl_options]);
231 $feeds[$href] = $feed;
234 $done[] = $href;
249 if ($link->hasAttribute('href')) {
250 $href = trim($link->getAttribute('href'));
251 $parsed = $this->registry->call(Misc::class, 'parse_url', [$href]);
254 $href = $this->registry->call(Misc::class, 'absolutize_url', [trim($link->getAttribute('href')), $this->base]);
256 $href = $this->registry->call(Misc::class, 'absolutize_url', [trim($link->getAttribute('href')), $this->http_base]);
258 if ($href === false) {
265 $this->local[] = $href;
267 $this->elsewhere[] = $href;
292 $query = '//a[@rel and @href] | //link[@rel and @href]';
294 $href = trim($link->getAttribute('href'));
295 $parsed = $this->registry->call(Misc::class, 'parse_url', [$href]);
300 $href = $this->registry->call(
303 [trim($link->getAttribute('href')), $this->base]
306 $href = $this->registry->call(
309 [trim($link->getAttribute('href')), $this->http_base]
312 if ($href === false) {
317 return $href;