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

Can not open with IE and file:// #192

Closed
yyjdelete opened this issue Dec 9, 2013 · 6 comments
Closed

Can not open with IE and file:// #192

yyjdelete opened this issue Dec 9, 2013 · 6 comments

Comments

@yyjdelete
Copy link
Contributor

YUIDoc@0.3.46 using YUI@3.9.1 with NodeJS@0.10.22

themes: default

Tested in IE 11, local javascript and etc is allowed.
1.open the doc with file://
2.Open a class and then any link in "Item Index"
3.The three table and content disappeared with a Exception
SCRIPT5007: unable to get undefined or null referenced property "getById"
file: apidocs.js, line: 228, col: 5

The full call stack is

updateTabState [line: 228, col: 5], apidocs.js
initClassTabView [line: 145, col: 5], apidocs.js
handleClasses [line: 288, col: 9], apidocs.js
next [line: 10, col: 2624], combo
Anonymous function [line: 28, col: 5], apidocs.js
next [line: 10, col: 2624], combo
_defaultRoute [line: 21, col: 434], combo
next [line: 10, col: 2624], combo
_onPjaxIOComplete [line: 19, col: 819], combo
_notify [line: 4, col: 5855], combo
notify [line: 5, col: 47], combo
_notify [line: 4, col: 4114], combo
_procSubs [line: 4, col: 4716], combo
fireSimple [line: 4, col: 4476], combo
fire [line: 4, col: 4270], combo
fire [line: 5, col: 5025], combo
_evt [line: 17, col: 1598], combo
complete [line: 17, col: 1682], combo
send [line: 17, col: 4006], combo
io [line: 17, col: 4259], combo
loadContent [line: 19, col: 484], combo
next [line: 10, col: 2624], combo
next [line: 10, col: 2826], combo
_dispatch [line: 10, col: 2292], combo
_afterHistoryChange [line: 11, col: 467], combo
_notify [line: 4, col: 5855], combo
notify [line: 5, col: 47], combo
_notify [line: 4, col: 4114], combo
_procSubs [line: 4, col: 4716], combo
fireSimple [line: 4, col: 4476], combo
fire [line: 4, col: 4270], combo
fire [line: 24, col: 672], combo
Anonymous function [line: 6, col: 2433], combo
Anonymous function [line: 4, col: 126], combo
Anonymous function [line: 6, col: 2403], combo
_notify [line: 4, col: 5855], combo
notify [line: 5, col: 47], combo
_notify [line: 4, col: 4114], combo
_procSubs [line: 4, col: 4716], combo
fireSimple [line: 4, col: 4476], combo
fire [line: 4, col: 4270], combo
fn [line: 22, col: 3495], combo

When using with non-IE browser or http://, there is no problem.

@yyjdelete
Copy link
Contributor Author

also in IE 10

@yyjdelete
Copy link
Contributor Author

@caridy @ericf
Can anyone fix this?
I tryed but failed.

@caridy
Copy link
Member

caridy commented Feb 17, 2014

@yyjdelete I'm afraid that has nothing to do with yuidoc but with the security rules applied by IE11 when it comes to open local files in a browser. I might be wrong here, but I don't have IE11, let's see if @juandopazo or @ezequiel can help to validate this. Do you have a more concrete repro case?

@yyjdelete
Copy link
Contributor Author

Maybe you are right. Found in pjax.handleClasses
res.ioResponse.readyState === 0 && res.ioResponse.response === "" && res.content.node === null

yyjdelete added a commit to yyjdelete/yuidoc that referenced this issue Feb 18, 2014
@juandopazo
Copy link
Member

Reproduced.

I think @yyjdelete's fix is correct.

@caridy
Copy link
Member

caridy commented Feb 19, 2014

  • yuidocjs@0.3.48

@caridy caridy closed this as completed Feb 19, 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

3 participants