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

IE9 下本地url document.URL与之前版本使用的location.href输出不一致导致模块id不能正确resolve #1154

Closed
zenxds opened this issue Apr 6, 2014 · 4 comments
Assignees
Milestone

Comments

@zenxds
Copy link

zenxds commented Apr 6, 2014

一个本地文件在IE9下

document.URL -> "file://E:\repository\test\index.html"
 location.href -> "file:///E:/repository/test/index.html"

之前版本的源码使用的是location.href,当前源码使用的是document.URL

这样导致在IE9下 模块id resolve结果不正确,从而加载脚本失败

其他IE版本没测,chrome两个输出是一致的

@army8735
Copy link
Member

army8735 commented Apr 7, 2014

还真是,IE10也是这样

@kmvan
Copy link

kmvan commented Apr 7, 2014

lz两个不同版本一起用吗?

@lifesinger
Copy link
Member

这个 army 改回 location.href

On Mon, Apr 7, 2014 at 5:17 PM, kmvan notifications@github.com wrote:

lz两个不同版本一起用吗?


Reply to this email directly or view it on GitHubhttps://github.com//issues/1154#issuecomment-39709950
.

王保平 / 玉伯(射雕)
送人玫瑰手有余香

@army8735 army8735 self-assigned this Apr 7, 2014
@army8735 army8735 added this to the 2.3.0 milestone Apr 7, 2014
@army8735
Copy link
Member

army8735 commented Apr 8, 2014

楼主更新看看

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

4 participants