This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
parseUrl and makeUrlAbsolute incorrectly parse and generate URLs with the Windows 'res:' protocol. #8355
Open
Description
In a Windows app where we want to use jqm as the user interface in an IWebBrowser2,
when the document base is the Windows app resource URL
res://device:\\directory\\file.exe/resource.html
,
the function jQuery.mobile.path.parseUrl incorrectly parses the 'device' part (which could be e.g. 'C' or 'x-wmapp1')
into the authority, host and hostname fields.
This causes the function jQuery.mobile.path.makeUrlAbsolute
to convert #two
into
res://device/:\\directory\\file.exe/resource.html#two
with a spurious '/' after device.
This causes all non data-ajax="false" navigation to fail
The res:/
' protocol should also be treated like the file:///
protocol.
respathissue.zip
Metadata
Metadata
Assignees
Labels
No labels