Skip to content
Browse files

xkcd_do_add_title: use a <p> instead of a <span>

This prevents the title from being displayed inline to the right of the
comic with some comics.
  • Loading branch information...
1 parent d822d98 commit 7f5d738df870c039b5d8deccb4489ff9aaad6845 @retroj committed Apr 4, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 modules/page-modes/xkcd.js
4 modules/page-modes/xkcd.js
@@ -27,9 +27,9 @@ function xkcd_do_add_title (buffer) {
// In some comics, the <img> is a link, so walk up to the surrounding <A>
if (img.parentNode.tagName == 'A')
img = img.parentNode;
- // Insert the text inside a <span> with a known ID
+ // Insert the text inside a <p> with a known ID
var text = document.createTextNode(title);
- var span = document.createElement('span');
+ var span = document.createElement('p'); = 'conkeror:xkcd-title-text';

0 comments on commit 7f5d738

Please sign in to comment.
Something went wrong with that request. Please try again.