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

Wrong parsing of case sensitive HTML #819

Closed
tran4o opened this issue Jan 27, 2017 · 1 comment
Closed

Wrong parsing of case sensitive HTML #819

tran4o opened this issue Jan 27, 2017 · 1 comment
Labels
bug Confirmed bug that we should fix
Milestone

Comments

@tran4o
Copy link

tran4o commented Jan 27, 2017

Executing :

        String xml="<r><X>A</X><y>B</y></r>";
	Parser parser = Parser.htmlParser();
	parser.settings(ParseSettings.preserveCase);
	org.jsoup.nodes.Document _doc = parser.parseInput(xml, "/");

Results in :
<html>
<head></head>
<body>
<r>
<X>
A
<y>
B
</y>
</X>
</r>
</body>
</html>

Manual hacking : remove all .toLowerCase() invocations from Token.java (normalName=...)

@tran4o tran4o changed the title Wrong parsing of case sensitive HTML parsing Wrong parsing of case sensitive HTML Jan 27, 2017
@jhy jhy added this to the 1.10.3 milestone Jun 10, 2017
@jhy jhy added the bug Confirmed bug that we should fix label Jun 10, 2017
@jhy jhy closed this as completed in b934c5d Jun 10, 2017
@jhy
Copy link
Owner

jhy commented Jun 10, 2017

Thanks, fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bug that we should fix
Projects
None yet
Development

No branches or pull requests

2 participants