Skip to content

Commit

Permalink
parentNode, not parentElement is the dom property more supported
Browse files Browse the repository at this point in the history
  • Loading branch information
moschel committed Mar 22, 2012
1 parent 78f20e1 commit 5436999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browser/open.js
Expand Up @@ -111,7 +111,7 @@ $.extend(FuncUnit,{
/*Sometimes readyState does not correctly reset itself, so we remove the
body from the document we are navigating away from, which will get set again
when the page has reloaded*/
FuncUnit.win.document.body.parentElement.removeChild(FuncUnit.win.document.body);
FuncUnit.win.document.body.parentNode.removeChild(FuncUnit.win.document.body);
// set the hash and reload
FuncUnit.win.location.hash = url.split('#')[1] || '';
FuncUnit.win.location.reload(true);
Expand Down

0 comments on commit 5436999

Please sign in to comment.