[Webkit-unassigned] [Bug 135698] SVGElement has no innerHTML property

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 7 06:44:49 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=135698





--- Comment #6 from Ophir LOJKINE <pere.jobs at gmail.com>  2014-08-07 06:45:00 PST ---
> Ok. So they probably moved innerHTML on Element or added it to SVGElement. I assume innerHTML = "<rect>" still gives you an HTMLUnknownElement/HTMLElement on Blink and Firefox?

Yes. In the Firefox console:

> div = document.createElement("div");
> div.innerHTML = "<svg></svg>";
> div.firstChild.innerHTML = "<rect>"
> div.firstChild.firstChild.__proto__
< HTMLUnknownElementPrototype

(But IMO, it's a pitty. It makes it more complex to use templates to create SVG elements, for example).

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list