Bug 26682 - It should be possible to add image to SVG DOM programmatically (using JavaScript)
Summary: It should be possible to add image to SVG DOM programmatically (using JavaScr...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-24 09:06 PDT by Dmitry Stadnik
Modified: 2009-06-26 02:43 PDT (History)
0 users

See Also:


Attachments
Test file (947 bytes, application/xhtml+xml)
2009-06-24 09:07 PDT, Dmitry Stadnik
no flags Details
Sample image (4.48 KB, image/png)
2009-06-24 09:08 PDT, Dmitry Stadnik
no flags Details
First attempt (3.86 KB, patch)
2009-06-26 01:45 PDT, Rob Buis
eric: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Stadnik 2009-06-24 09:06:38 PDT
It's possible to create 'image' element but href property is ignored when set.
Comment 1 Dmitry Stadnik 2009-06-24 09:07:18 PDT
Created attachment 31786 [details]
Test file
Comment 2 Dmitry Stadnik 2009-06-24 09:08:53 PDT
Created attachment 31787 [details]
Sample image
Comment 3 Dmitry Stadnik 2009-06-24 09:11:19 PDT
WebKit shows only one image; Firefox and Opera show two images - declared statically and added programmatically.
Comment 4 Rob Buis 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.
Comment 5 Eric Seidel (no email) 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!
Comment 6 Rob Buis 2009-06-26 02:43:08 PDT
Landed in r45256.