Closed
Bug 1511996
Opened 6 years ago
Closed 6 years ago
SVGGraphicsElement.getBBox() returns a SVGRect instead of a DOMRect
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1439685
People
(Reporter: lviggiani, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0
Steps to reproduce:
according to mozilla documentation:
https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement
SVGGraphicsElement.getBBox() shoul return a DOMRect representing the computed bounding box of the current element.
But if you try to print it out in the console you'll see a SVGRect instead.
Webkit has the same behavior. Perhaps it's the documentation to be updated.
I know this is trivial because both SVGRect and DOMRect have the same properties but if someone relies on the documentation and checks "instanceof DOMRect" it will fail.
Updated•6 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
Updated•6 years ago
|
Component: Untriaged → SVG
Product: Firefox → Core
You need to log in
before you can comment on or make changes to this bug.
Description
•