[wp-trac] [WordPress Trac] #10135: JavaScript Error In post.js When
Using Internet Explorer
WordPress Trac
wp-trac at lists.automattic.com
Sat Jun 13 03:28:46 GMT 2009
#10135: JavaScript Error In post.js When Using Internet Explorer
--------------------------+-------------------------------------------------
Reporter: brianwhite | Owner: azaozz
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: JavaScript | Version: 2.8
Severity: normal | Keywords: Internet Explorer JavaScript
--------------------------+-------------------------------------------------
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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10135>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list