Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OMSVGSVGElement.getElementById() doesn't work in Safari #22

Open
borismuzychuk opened this issue Dec 28, 2016 · 0 comments
Open

OMSVGSVGElement.getElementById() doesn't work in Safari #22

borismuzychuk opened this issue Dec 28, 2016 · 0 comments

Comments

@borismuzychuk
Copy link

borismuzychuk commented Dec 28, 2016

Hello!
OMSVGSVGElement.getElementById() method returns null on Mac OS X EI Capitan 10.11.6 + Safari 9.1.2 or higher, even if the element exists with such id.
Such behavior doesn't reproduced in other browsers and operation systems.

Sample code
`private OMSVGSVGElement svg;
...
ResourceCallback callback = new ResourceCallback()
{

    @Override
    public void onError(ResourceException e)
    {

    }

    @Override
    public void onSuccess(SVGResource resource)
    {
        svg = resource.getSvg();
        findSVGElementById();
    }

};

...

public void findSVGElementById()
{
...
OMSVGElement svgElement = (OMSVGElement) svg.getElementById("I exist");
// svgElement is null in Safari
...
}`

Only one element has such id.
Tested with v0.5.10 and v0.5.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant