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

Should treat unknown tags as inline, not block #1

Closed
jhy opened this issue Jan 31, 2010 · 1 comment
Closed

Should treat unknown tags as inline, not block #1

jhy opened this issue Jan 31, 2010 · 1 comment
Labels
bug Confirmed bug that we should fix

Comments

@jhy
Copy link
Owner

jhy commented Jan 31, 2010

See: http://groups.google.com/group/jsoup/browse_thread/thread/711fb6d0c4818ead?hl=en_US#

We should probably treat unknown tags as inline, rather than block tags. Otherwise an unknown tag within a <p> causes the auto-closer to close the P, so <p><custom>Test</custom></p> parses to <p></p><custom>Test</custom>.

Need to think about what impact that would have on unknown tags that should be blocks.

Thanks to François Goldgewicht (http://francois.goldgewicht.com) for reporting the issue.

@jhy
Copy link
Owner Author

jhy commented Feb 1, 2010

Parse unknown tags as inline elements that can contain blocks.

Ensures <p><custom>Test</custom></p> parses like that, and not
<p></p><custom>Test</custom>.

Closed by b19d83f

michael-simons pushed a commit to michael-simons/jsoup that referenced this issue Jul 12, 2011
Ensures <p><custom>Test</custom></p> parses like that, and not
<p></p><custom>Test</custom>.

Closes jhy#1
zazi pushed a commit to dswarm/jsoup that referenced this issue Oct 15, 2015
Ensures <p><custom>Test</custom></p> parses like that, and not
<p></p><custom>Test</custom>.

Closes jhy#1
This issue was closed.
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

1 participant