SVG does not render using correct xml namespace

RESOLVED FIXED

Status

()

--
major
RESOLVED FIXED
18 years ago
5 years ago

People

(Reporter: drbrain-bugzilla, Assigned: dean.jackson)

Tracking

Trunk
Points:
---
Bug Flags:
in-testsuite -

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(2 attachments)

(Reporter)

Description

18 years ago
When using the SVG namespace (http://www.w3.org/2000/svg) SVG will not render, 
but when using Mozilla's SVG namespace 
(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.svg) SVG will render 
on an SVG-enabled build.

The file (line) to be modified may be 
http://lxr.mozilla.org/seamonkey/source/layout/svg/content/src/nsSVGAtoms.cpp#30

Will post a testcase when I get the time to write one.
(Reporter)

Comment 1

18 years ago
Created attachment 34502 [details]
SVG using W3C namespace
(Reporter)

Comment 2

18 years ago
Created attachment 34503 [details]
SVG using mozilla.org namespace
(Reporter)

Comment 3

18 years ago
Expected results:
In the first attachment (SVG using W3C namespace) a black 10px by 10px box
should render in a blue border.  In the second attachment (SVG using mozilla.org
namespace) a collapsed blue border should render (and nothing else).

Actual results:
The first attachment renders as a collapsed blue border and the second renders
as a 10px by 10px black box in a blue border.

Comment 4

18 years ago
The namespace stuff is fixed as part of bug 80142 (which will hopefully be
checked in in the next few days), but the testcases don't work anyway - I just
get a white box with a blue border for both of them. I'll look into this...
Depends on: 80142

Comment 5

18 years ago
actually, the reason you don't see anything is because you haven't specified a
fill, and the stylesheet you've referenced isn't findable from within bugzilla.
If I add style="fill: black" to the <polygon> then I see the box in the upper
left corner (with the patches)

The invalid namespace also works, but will probably be pulled out at some point
soon - its just there for backwards compatability.
(Reporter)

Comment 6

18 years ago
Sorry, I forgot to mention that this was for Mozilla 0.8.1, the newest SVG build
I have access to. (Build ID: 2001032722)

Comment 7

18 years ago
Right - its not checked in yet. Hopefully it will be by 0.9.1.

Comment 8

17 years ago
this is fixed no?

Comment 9

17 years ago
Fixed by SVG merge.
Status: NEW → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → FIXED
in-testsuite- since this will be covered by most other SVG tests.
Flags: in-testsuite-
You need to log in before you can comment on or make changes to this bug.