From c13a34487179c7483c63c3c31aed1e1032002bc5 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Tue, 9 Oct 2007 00:20:48 +0000 Subject: [PATCH] use the document's title attribute to grab the page title for buffer completions rather than the raw text node content --- content/completion.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/completion.js b/content/completion.js index 971c0ee6..36b64530 100644 --- a/content/completion.js +++ b/content/completion.js @@ -429,7 +429,7 @@ vimperator.completion = (function() // {{{ { try { - title = getBrowser().getBrowserAtIndex(i).contentDocument.getElementsByTagName('title')[0].text; + title = getBrowser().getBrowserAtIndex(i).contentDocument.title; } catch (e) {