Results 1 to 4 of 4

Thread: [SOLVED]Custom HTML Element or Module - Start tag seen without seeing a doctype first

  1. #1
    New user
    Join Date
    10-25-15.
    Posts
    3

    Ausrufezeichen [SOLVED]Custom HTML Element or Module - Start tag seen without seeing a doctype first

    In Contao 3.5.4 I'm trying to to use the html5 <picture> element in a Custom HTML module.

    This is the code:

    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:

    Code:
    <div class="logo col-xs-6">
        &lt;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">
        &lt;/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?

    Contao URL: http://www.well-made.nl/home.html (Not working)
    HTML Recreation URL: http://www.well-made.nl/test.html (working picture tag)

    Looks like it is a problem with all types of custom HTML elements in Contao. I am getting the following error in the HTML editor start tag seen without seeing a doctype first.
    Any clue why? Yes I do have a doctype
    Last edited by well-made; 10/26/2015 at 09:40. Reason: Question solved

  2. #2
    New user
    Join Date
    10-25-15.
    Posts
    3

    Default

    Also tried reuploading the files from 3.5.4 but that didn't fix it.
    Am I missing a setting or something?

  3. #3
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    499

    Default

    Look at system-settings for allowed HTML-elements. Add the missing ones. e.g. <picture>,<a>...
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

  4. #4
    New user
    Join Date
    10-25-15.
    Posts
    3

    Default

    Quote Originally Posted by Andreas View Post
    Look at system-settings for allowed HTML-elements. Add the missing ones. e.g. <picture>,<a>...
    The one thing I didn't think about! Thanks you very much!
    Been too long since I used Contao

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •