|
|
@ -663,10 +663,9 @@ class Parser { |
|
|
|
} elseif (in_array($node->localName, ["img", "area"]) && $node->hasAttribute("alt")) { |
|
|
|
# else if img.p-x[alt] or area.p-x[alt], then return the alt attribute |
|
|
|
return $node->getAttribute("alt"); |
|
|
|
} else { |
|
|
|
} |
|
|
|
# else return the textContent of the element after [cleaning] |
|
|
|
return $this->getCleanText($node, $prefix); |
|
|
|
} |
|
|
|
case "u": |
|
|
|
# To parse an element for a u-x property value (whether explicit u-* or backcompat equivalent): |
|
|
|
if (in_array($node->localName, ["a", "area", "link"]) && $node->hasAttribute("href")) { |
|
|
|