Code for Embedded animated GiF is not valid

This forum is for all Flare issues not related to any of the other categories.
Post Reply
ktbCA57
Sr. Propeller Head
Posts: 483
Joined: Wed Feb 04, 2009 7:45 am

Code for Embedded animated GiF is not valid

Post by ktbCA57 »

So, I found a royalty-free, animated gift that i want to add to my project. I got the code to embed the resizable image, but when i add it to the topic, I get the invalid code error... I've looked and looked at the code... which I copied and pasted directly into my project and I'm not seeing the issue... :(

Does anyone see a problem with this code?

<div style="width:100%;height:0;padding-bottom:100%;position:relative;"><iframe src="https://giphy.com/embed/3o7aCTfyhYawdOXcFW" width="100%" height="100%" style="position:absolute" frameBorder="0" class="giphy-embed" allowFullScreen></iframe></div><p><a href="https://giphy.com/gifs/animation-loop-3 ... OXcFW">via GIPHY</a></p>

Thanks for any input.
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: Code for Embedded animated GiF is not valid

Post by NorthEast »

The code you've got is HTML, but Flare uses XHTML.

In XHTML you can't minimise attributes, so allowFullScreen is not valid as it doesn't have a value (="xxx").
So you'd need to use allowFullScreen="true".
ktbCA57
Sr. Propeller Head
Posts: 483
Joined: Wed Feb 04, 2009 7:45 am

Re: Code for Embedded animated GiF is not valid

Post by ktbCA57 »

Dave Lee wrote:The code you've got is HTML, but Flare uses XHTML.

In XHTML you can't minimise attributes, so allowFullScreen is not valid as it doesn't have a value (="xxx").
So you'd need to use allowFullScreen="true".

PERFECTO! I was hoping it was something that simple... Thank you sooooo much! :D
Post Reply