Reputation: 76
In Contao 3.5.4
I'm trying to to use the html5
<picture>
element in a Custom HTML
module.
This is the code:
<div class="logo col-xs-6">
<picture>
<source srcset="files/wellmade_2015/images/logo.svg" type="image/svg+xml">
<source srcset="files/wellmade_2015/images/logo.png" type="image/png">
<img src="files/wellmade_2015/images/logo.png" alt="Well-Made">
</picture>
</div>
But when I look at the rendered HTML it shows as:
<div class="logo col-xs-6">
<picture>
<source srcset="files/wellmade_2015/images/logo.svg" type="image/svg+xml">
<source srcset="files/wellmade_2015/images/logo.png" type="image/png">
<img src="files/wellmade_2015/images/logo.png" alt="Well-Made">
</picture>
</div>
And I don't know what I am doing wrong. I am using the right DOCTYPE <!DOCTYPE html>
. Anyone else had this problem and found a solution?
Upvotes: 1
Views: 2000
Reputation: 76
Look at system-settings for allowed HTML-elements. Add the missing ones. e.g.< picture >,< a >...
Thanks to Andreas
Upvotes: 2