Archived Comments (locked)
|
|
The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008) |
|
|
You seem to have an escaping bug in this script. The line that reads: divEl.innerHTML="\""+img.title+"\""; should instead read: divEl.appendChild(document.createTextNode("\""+img.title+"\""));
That way, it'll work correctly even if the comic title happens to contain HTML tags (which, xkcd being xkcd, wouldn't surprise me at all). |