Bug 15355 - JavaScript exception when loading QBert game
Summary: JavaScript exception when loading QBert game
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL: http://www.treebuilder.de/svg/qbert/q...
Keywords: NeedsReduction
Depends on:
Blocks:
 
Reported: 2007-10-03 00:21 PDT by Eric Seidel (no email)
Modified: 2007-12-15 03:54 PST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2007-10-03 00:21:35 PDT
http://www.treebuilder.de/svg/qbert/q-bert0.2.svg

This is the line:
				var n=document.getElementById("wuerfel").cloneNode(true)

I expect it can't find "wuerfel" (which translates to "ball" btw.)

There are other exceptions if you try to play, but I expect those relate back to this one.
Comment 1 Rob Buis 2007-10-03 11:06:07 PDT
(In reply to comment #0)
> n=document.getElementById("wuerfel").cloneNode(true)
> 
> I expect it can't find "wuerfel" (which translates to "ball" btw.)

I suspect the document is not completely build when this code is executed, but atm that is just a suspicion.
Cheers,

Rob.
Comment 2 Eric Seidel (no email) 2007-12-15 03:54:28 PST
Yes, this is due to this SVG assuming ASV.  It assumes all scripts will be run after the document is fully parsed, which is incorrect.