I see HTMLUnit v2.12 has supported SVG elements. It's a great enhancement since SVG is quite popular in current web application.
However when I use HTMLUnit to execute the javascript code (such as highcharts) to generate SVG graphics, the text is always not drawing correct, because getBBox method is not found in SVG text element, so any text computation will fail. However this method is working in browser correctly.
Html Unit is so great tool to execute html page and javascript code in java application.
Is getBBox method in SVG supposed to be supported in future release?
Thank you
If browsers support getBBox on SVG text elements, then HtmlUnit has to do it too.
Do you rely on precise BBox computation or do you only need the method to be present? In the latter case, it is quite easy to fix it.
We are facing the same problem. Unfortunately highcharts relies on precise computation.
Primitive support was added.
However, HtmlUnit scope is not to render elements, but feel free to post patches for specific case you encounter.