#10135 closed defect (bug) (fixed)
JavaScript Error In post.js When Using Internet Explorer
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.8.1 | Priority: | normal |
Severity: | normal | Version: | 2.8 |
Component: | JavaScript | Keywords: | has-patch reporter-feedback Internet Explorer JavaScript |
Focuses: | Cc: |
Description
When using Internet Explorer (but not Firefox) I receive the dreaded error "Object doesn't support this property or method" I traced the error to line 217 of post.dev.js. Evidently, IE doesn't like the way the autosave function is declared inside of the if statement. The solution was to replace "autosave = function(){};" with "var autosave = function(){};" There were no problems in Firefox regardless of how autosave was declared. It was a simple change, however, I have still attached a patch with the above change.
Steps to reproduce. Access any admin page where post.js will be loaded and autosave.js is not using Internet Explorer.
Attachments (2)
Change History (9)
#3
@
16 years ago
- Keywords reporter-feedback added; commit removed
@brianwhite - andrew is having issues reproducing, and, please try this:
document.autosave = ...
#5
@
16 years ago
Using Internet Explore 8 on Windows Vista.
- Everything worked fine when using document.autosave.
- Everything also worked fine when using window.autosave.
I do not know why IE doesn't like autosave by itself. Neither prefix should be required.
Patch for post.dev.js