From 7f5d738df870c039b5d8deccb4489ff9aaad6845 Mon Sep 17 00:00:00 2001 From: John Foerch Date: Wed, 4 Apr 2012 11:58:01 -0400 Subject: [PATCH] xkcd_do_add_title: use a

instead of a This prevents the title from being displayed inline to the right of the comic with some comics. --- modules/page-modes/xkcd.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/page-modes/xkcd.js b/modules/page-modes/xkcd.js index d2b1f19..93d2287 100644 --- a/modules/page-modes/xkcd.js +++ b/modules/page-modes/xkcd.js @@ -27,9 +27,9 @@ function xkcd_do_add_title (buffer) { // In some comics, the is a link, so walk up to the surrounding if (img.parentNode.tagName == 'A') img = img.parentNode; - // Insert the text inside a with a known ID + // Insert the text inside a

with a known ID var text = document.createTextNode(title); - var span = document.createElement('span'); + var span = document.createElement('p'); span.id = 'conkeror:xkcd-title-text'; span.appendChild(text); img.parentNode.appendChild(span); -- 2.11.4.GIT