-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work onarea-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.library-htmltype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)web-librariesIssues impacting dart:html, etc., librariesIssues impacting dart:html, etc., libraries
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
Metadata
Assignees
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work onarea-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.library-htmltype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)web-librariesIssues impacting dart:html, etc., librariesIssues impacting dart:html, etc., libraries