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

XHTML with self-closing <title/> element does not display (XML parsing algorithm, UIWebView only) #81

Closed
rkwright opened this issue Jul 28, 2014 · 3 comments
Assignees

Comments

@rkwright
Copy link
Contributor

(Transferred from Bugzilla, bug #51, 24 July 2014)
Daniel Weck 2014-03-06 16:41:46 CST

Basically, with embedded WebKit (UIWebView), any self-closing element that should normally contain text is considered open by the underlying XML parser. In the case of <title/>, this results in the entire DOM (body included) to be "merged" into the title element...and as a result the viewport remains empty in LauncherOSX (inspect HTML to see that the body is empty, all the content is shifted into head->title).

In summary: XHTML documents that do not strictly adhere to some XML formatting conventions can be very problematic in UIWebView-dependent renderers (I personally only tested Launcher-OSX).

Another example of similar problem is document.createElement() vs. document.createElementNS() ===> only the latter explicit namespace allows the creation of HTMLElement nodes (instead of Element, which breaks CSS selectors), Once again, this issue does not affect "real" web browsers, only UIWebView.

Not sure if there is a configuration flag in UIWebView that would relax the XML parser?

@rkwright
Copy link
Contributor Author

This bug needs to be retested to see if still reproducible.

@rkwright rkwright added this to the m1.1 milestone Sep 19, 2014
@rkwright
Copy link
Contributor Author

The link to the bug-file was lost. Will need to recreate the bug-file in order to test.

@danielweck danielweck self-assigned this Oct 23, 2014
@danielweck danielweck modified the milestones: m1.2, m1.1 Oct 23, 2014
@danielweck
Copy link
Member

In OSX Yosemite, I am unable to reproduce the document.createElement() vs. document.createElementNS() behaviour (which used to break CSS selectors). I am also unable to reproduce the

<title />

self-closing tag problem.
In other words, WebView has been fixed since I identified this issue. Perhaps this is fixed in OSX Mavericks as well.
At any rate, closing.

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