Thanks Björn,
That tells me how to fix it, and now that you explain it, it sorta reminds me that maybe someone already cited for me the lines in the spec that say dont expect to measure anything that has only been defined but never drawn --- (that sounds like how spec writers write doesnt it? I kid. Actually it sounds more like a Zen koan spoken by a very grumpy Zen master.) Apologies to that someone if so I am forgetful. Is there such a dictum? If so, I think Id rather fuss to the SVG WG than to have to change my example, since its a lot more elegant to do it this way than to draw the content out somewhere near negative infinity (assuming that well never scroll over there), or to draw it and then measure it and then hide it just because someone read the spec more carefully than the others?? Well, phooey, my lesson is getting written a little more slowly than I had hoped. Regards and thanks again, David From: svg-developers@yahoogroups.com [mailto:svg-developers@yahoogroups.com] On Behalf Of Bjoern Hoehrmann Sent: Thursday, September 15, 2011 6:43 PM To: svg-developers@yahoogroups.com Subject: Re: [svg-developers] Funny error with getBBox() in Firefox * David Dailey wrote: >It works in Chrome, Safari, Opera, IE, ASV; not in FF. The error console >gives what looks like a Bounding box error, but the thing I'm trying to >measure is a path and it has a nontrivial (and proper) value for its d >attribute, based on placing an alert just prior to the Bbox thing The getBBox implementation in Firefox throws an exception when you call it on elements that are not rendered by design for all I can tell, see http://mxr.mozilla.org/mozilla-central/source/content/svg/content/src/nsSVGG raphicElement.cpp#98 You would have to find a way to hide the elements while making Firefox think they are not hidden. -- Björn Höhrmann · mailto:bjo...@hoehrmann.de <mailto:bjoern%40hoehrmann.de> · http://bjoern.hoehrmann.de Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de 25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ [Non-text portions of this message have been removed] ------------------------------------ ----- To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ----Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/svg-developers/join (Yahoo! ID required) <*> To change settings via email: svg-developers-dig...@yahoogroups.com svg-developers-fullfeatu...@yahoogroups.com <*> To unsubscribe from this group, send an email to: svg-developers-unsubscr...@yahoogroups.com <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/