Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

script tag need escaped in javascript to support inline in a html page #4939

Closed
mrduguo opened this Issue · 2 comments

2 participants

@mrduguo

When inline the current jquerymobile inside html script tag, it broken due to a script tag not escaped in following line:
https://github.com/jquery/jquery-mobile/blob/master/js/jquery.hashchange.js#L362

The fix is to add a back slash before the forward slash.

Replace:

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

With

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

Related background reading:
http://stackoverflow.com/questions/3302648/should-i-use-cdata-in-html5

@gseguin gseguin was assigned
@gseguin
Collaborator

That would be a bug to file against https://github.com/cowboy/jquery-hashchange, we'll update our copy if it gets fixed.

@gseguin
Collaborator

Closed #4939

@gseguin gseguin closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.