RESOLVED FIXED 26682
It should be possible to add image to SVG DOM programmatically (using JavaScript)
https://bugs.webkit.org/show_bug.cgi?id=26682
Summary It should be possible to add image to SVG DOM programmatically (using JavaScr...
Dmitry Stadnik
Reported 2009-06-24 09:06:38 PDT
It's possible to create 'image' element but href property is ignored when set.
Attachments
Test file (947 bytes, application/xhtml+xml)
2009-06-24 09:07 PDT, Dmitry Stadnik
no flags
Sample image (4.48 KB, image/png)
2009-06-24 09:08 PDT, Dmitry Stadnik
no flags
First attempt (3.86 KB, patch)
2009-06-26 01:45 PDT, Rob Buis
eric: review+
Dmitry Stadnik
Comment 1 2009-06-24 09:07:18 PDT
Created attachment 31786 [details] Test file
Dmitry Stadnik
Comment 2 2009-06-24 09:08:53 PDT
Created attachment 31787 [details] Sample image
Dmitry Stadnik
Comment 3 2009-06-24 09:11:19 PDT
WebKit shows only one image; Firefox and Opera show two images - declared statically and added programmatically.
Rob Buis
Comment 4 2009-06-26 01:45:27 PDT
Created attachment 31918 [details] First attempt Should be a straightforward patch, null NS was always assumed, so for xlink the syncing did not work. Cheers, Rob.
Eric Seidel (no email)
Comment 5 2009-06-26 01:50:52 PDT
Comment on attachment 31918 [details] First attempt The ChangeLog should have a link to the bug. Otherwise this looks fantastic!
Rob Buis
Comment 6 2009-06-26 02:43:08 PDT
Landed in r45256.
Note You need to log in before you can comment on or make changes to this bug.