Re: [elm-discuss] Re: Svg.image not showing when embedded inside HTML

2016-07-18 Thread Peter Damoc
Wow, changing

attribute "xlink:href" imgData

to

xlinkHref imgData

solved the issue. Which was a little bit weird because the output code
looks identical.

With this occasion I also found out about attributeNS, which might come in
hand. ;)

Thank you Iwan!




On Mon, Jul 18, 2016 at 4:43 PM, Iwan Birrer  wrote:

> Hi Peter,
>
> Have you got a specific reason to use VirtualDom directly? If not, here is
> a version that should work, which is not using VirtualDom:
>
> https://gist.github.com/ibirrer/1ab87a2e9b0acad6976a06a3a8a76bff
>
>
>
> Am Montag, 18. Juli 2016 13:18:10 UTC+2 schrieb Peter Damoc:
>>
>> Hello kind people,
>>
>> I've been struggling with an issue and maybe one of you has an insight on
>> what else could I try.
>>
>> Here is the SSCCE:
>> https://gist.github.com/pdamoc/53a312e7bb3d08b256a2afb3a584661f
>>
>> *The problem:*
>> I try to display an image embedded as base64 inside a SVG (the final
>> purpose is to print it.)
>> The image does not show when I try to display the resulting SVG.
>>
>> The strange thing is that when I send the contents of the "output" div to
>> a new window, the image shows. If I manually copy the resulting html (via
>> the dev tools) into a plain html file, again, the image shows.
>>
>> I've tried it on Chrome, Firefox and Safari and the behavior is
>> consistent.
>>
>> I've validated the output html that elm-make creates and it is 100%
>> valid.
>>
>> I've even tried to put the resulting SVG into an iframe but the iframe
>> came out blank.
>>
>> What else can I try?
>>
>> Thank you in advance.
>>
>> --
>> There is NO FATE, we are the creators.
>> blog: http://damoc.ro/
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to elm-discuss+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
There is NO FATE, we are the creators.
blog: http://damoc.ro/

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[elm-discuss] Re: Svg.image not showing when embedded inside HTML

2016-07-18 Thread Iwan Birrer
Hi Peter,

Have you got a specific reason to use VirtualDom directly? If not, here is 
a version that should work, which is not using VirtualDom:

https://gist.github.com/ibirrer/1ab87a2e9b0acad6976a06a3a8a76bff



Am Montag, 18. Juli 2016 13:18:10 UTC+2 schrieb Peter Damoc:
>
> Hello kind people, 
>
> I've been struggling with an issue and maybe one of you has an insight on 
> what else could I try.
>
> Here is the SSCCE: 
> https://gist.github.com/pdamoc/53a312e7bb3d08b256a2afb3a584661f
>
> *The problem:*
> I try to display an image embedded as base64 inside a SVG (the final 
> purpose is to print it.)
> The image does not show when I try to display the resulting SVG. 
>
> The strange thing is that when I send the contents of the "output" div to 
> a new window, the image shows. If I manually copy the resulting html (via 
> the dev tools) into a plain html file, again, the image shows. 
>
> I've tried it on Chrome, Firefox and Safari and the behavior is 
> consistent. 
>
> I've validated the output html that elm-make creates and it is 100% valid. 
>
> I've even tried to put the resulting SVG into an iframe but the iframe 
> came out blank. 
>
> What else can I try? 
>
> Thank you in advance. 
>
> -- 
> There is NO FATE, we are the creators.
> blog: http://damoc.ro/
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.