Commit 23aabcb8 authored by Joschi Kuphal's avatar Joschi Kuphal

Fixed language detection to support parsing of HTML fragments

parent 7c7f5024
......@@ -508,7 +508,7 @@ class Parser {
return unicodeTrim($node->getAttribute('content'));
}
}
} else {
} elseif ($el->parentNode instanceof DOMElement) {
// check the parent node
return $this->language($el->parentNode);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment