Closed Bug 426447 Opened 18 years ago Closed 18 years ago

hasFeature broken for SVG 1.1 style SVG detection - regression.

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: bugs, Unassigned)

References

()

Details

(Keywords: addon-compat, dev-doc-needed)

Attachments

(1 file)

If one checks for SVG support using the 1.1 format: http://www.w3.org/TR/SVG11/feature in Firefox 3, one gets false. As test page in the URL shows, only old style feature detection works. http://bonsai.mozilla.org/cvsview2.cgi?diff_mode=context&whitespace_mode=show&root=/cvsroot&subdir=mozilla/content/svg/content/src&command=DIFF_FRAMESET&file=nsSVGFeaturesList.h&rev2=1.4&rev1=1.3 Change seems to have occurred there according to blame and seems to have occurred in error.
Summary: hasFeature broken for SVG 1.1 detection - regression. → hasFeature broken for SVG 1.1 style SVG detection - regression.
Blocks: 294517
Severity: blocker → normal
Flags: blocking1.9?
Keywords: regression
Attached patch Fix — — Splinter Review
Attachment #313002 - Flags: superreview?(tor)
Attachment #313002 - Flags: review?(tor)
According to the spec quoted in comment 0 SVGDOM cannot be set to supported unless we support at least one of SVGDOM-static, SVGDOM-animation or SVGDOM-dynamic and we have never claimed to support any of these. Our support for both static and dynamic is incomplete. Therefore IMHO this bug is invalid and the patch as it stands would put us in violation of the spec.
Ah, ok. I have no problem with that; there was just no mention of any of this (or anything relating to feature strings) in bug 294517. So it wasn't clear that the change was actually on purpose or correct... There should really be some mochitests for this, to remove the confusion.
We should probably address mochitests in bug 322724. I'll close this as invalid.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → INVALID
Attachment #313002 - Flags: superreview?(tor)
Attachment #313002 - Flags: review?(tor)
Attachment #313002 - Flags: review-
So. Since the interpretation is that the "false" value is correct - how *does* one identify correctly whether Mozilla has any SVG support? Seems that the: http://www.w3.org/TR/SVG11/feature#SVG test is only replacement for the deprecated org.w3c.dom.svg test.
Hm. n/m, I can guess. The correct thing to do, no doubt, is to make a list of all features needed or possibly needed and test for each one. :) There is no generic test.
Flags: blocking1.9?
This needs some documentation, obviously, since places like gmaps are relying on the hasFeature test, which worked in previous versions. Does it really help anyone for us to not claim 1.1 here when we claimed it in FF 1.5 and 2? What should people use where they were using this test before? Can someone write some script that tests for "that subset of 1.1 that FF 2 had" which was clearly enough to turn on a bunch of SVG capabilities for apps, and thereby improve user experience?
We followed Safari's lead on this. They used to claim to support all SVG 1.1 and like us now don't. People should test for the specific SVG features they need for their applications to work.
Yeah, looks like http://code.google.com/p/gmaps-api-issues/issues/detail?id=378 has the details on what's needed, too. Someone want to add that to the firefox-3-for-web-developers page?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: