8000 Fixed language detection to support parsing of HTML fragments by jkphl · Pull Request #121 · microformats/php-mf2 · GitHub
[go: up one dir, main page]

Skip to content

Fixed language detection to support parsing of HTML fragments #121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 27, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fixed language detection to support parsing of HTML fragments
  • Loading branch information
jkphl committed May 25, 2017
commit 23aabcb8bc1a12dad81e20dd30cad887601c7230
2 changes: 1 addition & 1 deletion Mf2/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ public function language(DOMElement $el)
return unicodeTrim($node->getAttribute('content'));
}
}
} else {
} elseif ($el->parentNode instanceof DOMElement) {
// check the parent node
return $this->language($el->parentNode);
}
Expand Down
0