Skip to content
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

#493 multiple titles #503

Merged
merged 2 commits into from Jun 2, 2018
Merged

Conversation

magneticcoffee
Copy link
Contributor

As in #493 described, Mechanize currently returns the concatinated text of all found <title> tags, even if they belong to SVG or RDF subcontent. This PR changes this behaviour, so only the expected HTML-title is returned.

According to the documentation:

> This class encapsulates an HTML page. If Mechanize finds a content type of 'text/html', this class will be instantiated and returned.

Expected behaviour is to return the HTML-title, and not any additional
title-tags found in the body (e.g. SVG, RDF, ...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants