Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

"unexpected end of input" when the jqm is embeded #7300

Closed
qpi opened this issue Apr 7, 2014 · 0 comments · Fixed by #7305
Closed

"unexpected end of input" when the jqm is embeded #7300

qpi opened this issue Apr 7, 2014 · 0 comments · Fixed by #7305

Comments

@qpi
Copy link

qpi commented Apr 7, 2014

When U include the jQuery Mobile library inside script tag:

<script type="text/javascript">
... JQM library code here ...
</script>

it throws an error: unexpected end of input

The problem occurs by this line (in the last 1.4.1):

domain && iframe_doc.write( '<script>document.domain="' + domain + '"</script>' );

After I escape the end script tag like this, it works well:

domain && iframe_doc.write( '<script>document.domain="' + domain + '"<\/script>' );
gabrielschulhof pushed a commit that referenced this issue Apr 8, 2014
Grab the version of jquery.hashchange.js that includes
gseguin/jquery-hashchange#1 which will cause the built
library to be inline-able.

Fixes gh-7300

(cherry picked from commit 400c856)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant