Nice to know when implementing Custom Tags

29 views
Skip to first unread message

Das Licht

unread,
Oct 16, 2018, 5:40:48 PM10/16/18
to Fat-Free Framework
Hi,
yesterday I've implemented a <VideoPlayer/ custom tag.
I took me some time to debug what was not working, and why.
To safe you some time I like to share my expericne here.

I have notices that it will break the html markup when not writing all arguments in one line.

This doesn't work:
<VideoPlayer
id="video1"
src="<<<videourl>>>"
poster="<<<posterurl>>>"
/>

<VideoPlayer
id="video1"
src="<<<videourl>>>"
poster="<<<posterurl>>>"
>
</VideoPlayer>


But this works:
<VideoPlayer id="video1" src="<<<videourl>>>" poster="<<<posterurl>>>"/>

<VideoPlayer
id="video1"
src="<<<videourl>>>"
poster="<<<posterurl>>>">
</VideoPlayer>

<VideoPlayer
id="video1"
src="<<<videourl>>>"
poster="<<<posterurl>>>"
"">
</VideoPlayer>


Hope that helps someone :)

~ Marc
 
Reply all
Reply to author
Forward
0 new messages