WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
10151
ghostmap XHTML + SVG fails due to javascript undefined exception
https://bugs.webkit.org/show_bug.cgi?id=10151
Summary
ghostmap XHTML + SVG fails due to javascript undefined exception
Eric Seidel (no email)
Reported
2006-07-29 05:27:57 PDT
I'm not sure from looking at the JS console as to why this SVG + XHTML document is failing. The error shown in the console does not make any sense. This would be a cool demo of SVG + XHTML if we could make it work.
Attachments
First attempt
(4.18 KB, patch)
2006-07-29 12:53 PDT
,
Rob Buis
ggaren
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Rob Buis
Comment 1
2006-07-29 09:24:19 PDT
Hi, (In reply to
comment #0
)
> I'm not sure from looking at the JS console as to why this SVG + XHTML document > is failing. The error shown in the console does not make any sense. > > This would be a cool demo of SVG + XHTML if we could make it work.
Actually there does not seem many problems. The main one is that the js contains document.URL, which AFAIK is a not supported IE extension. Note that FF must support it since this svg just works there. When I replaced it in the <script> with window.location.href (in 2 places) at least it rendered fine. After that the only problem is that the drawing area is unclipped, but I bet there is a seperate bug on that. Maybe someone with authority/experience can say how to handle document.URL, I have no idea how much it is used in real-life web pages. Cheers, Rob.
Rob Buis
Comment 2
2006-07-29 10:00:45 PDT
Forget my earlier comment, document.URL *is* supported. Just in this particular testcase it evaluates to 'undefined'. Maybe something to do with being of xhtml+svg kind, further investigating... Cheers, Rob. (In reply to
comment #1
)
> Hi, > > (In reply to
comment #0
) > > I'm not sure from looking at the JS console as to why this SVG + XHTML document > > is failing. The error shown in the console does not make any sense. > > > > This would be a cool demo of SVG + XHTML if we could make it work. > > Actually there does not seem many problems. The main one is that the js > contains document.URL, which AFAIK is a not supported IE extension. Note that > FF must support it since this svg just works there. When I replaced it in the > <script> > with window.location.href (in 2 places) at least it rendered fine. After that > the only problem is that the drawing area is unclipped, but I bet there is > a seperate bug on that. Maybe someone with authority/experience can say > how to handle document.URL, I have no idea how much it is used in real-life > web pages. > Cheers, > > Rob. >
Rob Buis
Comment 3
2006-07-29 12:53:42 PDT
Created
attachment 9755
[details]
First attempt The problem in the end was not very svg specific. document.URL just only worked for html documents, this patch should fix that and the testcase. I also included the one changed result. Let me know if this requires an extra testcase, I don't think so since HTMLDocument04.xhtml tests it. Cheers, Rob.
Geoffrey Garen
Comment 4
2006-07-29 12:57:09 PDT
Comment on
attachment 9755
[details]
First attempt r=me
Darin Adler
Comment 5
2006-07-29 17:00:21 PDT
Rob landed this as
r15692
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug