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

when Using <!DOCTYPE html> the height is not calculated correctly #5

Open
samridhgupta opened this issue Aug 21, 2017 · 1 comment
Open

Comments

@samridhgupta
Copy link

samridhgupta commented Aug 21, 2017

If i am providing the source Html in the form of

<html id="htmlContent">
        <p>
            <span>{content} </span> 
        </p>
    </html>

the Webview component is able to render the content with correct height.

but if the source Html is

<!DOCTYPE html>
<html id="htmlContent">
        <p>
            <span>{content} </span> 
        </p>
    </html>

the Height is not calulated correctly and while rendered content is clipped in iOS only.

In addition, i m also using Katex to render the content to mathematical symbols.
So if I m not using <!DOCTYPE html> then the rendering fraction lines are not rendered properly on both iOS and Android.

is there any fix for iOS webview which works fines even when the <!DOCTYPE html> is used.

any need on this issue would be grateful.

@scazzy
Copy link
Owner

scazzy commented Oct 27, 2017

@samridhgupta I think it'd be because of <!Doctype> is not a valid xml. needs to be a valid closing tag to render. While it works proper if passed a URL instead of HTML. Been a while I've worked on this. Could you check few test cases if you find the bug?

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

No branches or pull requests

2 participants