From 561ed5fc3e53ec079bb13daee0d4b3ca9f0f1353 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Wed, 17 Jun 2009 20:47:10 +1000 Subject: [PATCH] Trivial refactoring of buffer.shiftFrameFocus. It's a bit nicer to test against types rather than attribute strings. --- common/content/buffer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/content/buffer.js b/common/content/buffer.js index f6d18faa..25f1df71 100644 --- a/common/content/buffer.js +++ b/common/content/buffer.js @@ -1392,7 +1392,7 @@ function Buffer() //{{{ // find all frames - depth-first search (function (frame) { - if (frame.document.body.localName.toLowerCase() == "body") + if (frame.document.body instanceof HTMLBodyElement) frames.push(frame); Array.forEach(frame.frames, arguments.callee); })(window.content);