Skip to content

[missing] EmbedElement is missing contentDocument #12751

Open
@DartBot

Description

This issue was originally filed by kbeck...@gmail.com


In this example http://xn--dahlstrm-t4a.net/svg/html/get-embedded-svg-document-script.html
It is possible to access the contents of an SVG embedded with the embed Tag:
    
        function findSVGElements()
        {
            var elms = document.querySelectorAll(".emb");
            for (var i = 0; i < elms.length; i++)
            {
                var subdoc = elms[i].contentDocument;
                if (subdoc)
                    subdoc.getElementById("svgbar").setAttribute("fill", "lime");
            }
        }

Dart is missing the contentDocument property and thus this code can not be re-produced in Dart..

Karsten

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work onarea-webUse area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.library-htmltype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)web-librariesIssues impacting dart:html, etc., libraries

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions