Make the lightbox form W3C valid

  • Profile Image
    Stephen
    Asked on October 30, 2013 at 04:50 PM

    employment link at bottom of page - test page

     

    ErrorLine 130, Column 12: The text content of element script was not in the required format: Expected space, tab, newline, or slash but found n instead. });</script><a class="lightbox-11014249601" style="cursor:pointer;color:#64313a…
    Syntax of script documentation:Zero or more code comments, each of which is either a single-line comment starting with "//" or a multi-line comment starting with "/*" and ending with "*/". The content must also meet the constraints of the script microsyntax. For further details, see Inline documentation for external scripts.

    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.petshanty.com%2Femployment.html&charset=%28detect+automatically%29&doctype=Inline&group=0

    If there is a way just to clear it up, that would be great.. thanks!

     

     

  • Profile Image
    EltonCris
    Answered on October 30, 2013 at 06:24 PM

    Hi there!

    Try the following fix.

    Instead of 

    <script src="https://static-interlogyllc.netdna-ssl.com/static/feedback2.js?3.1.409" type="text/javascript">

    new JotformFeedback({

    formId:'11014249601',

    base:'https://secure.jotform.com/',

    windowTitle:'Employment',

    background:'#FFA500',

    fontColor:'#FFFFFF',

    type:false,

    height:500,

    width:700

    });

    </script>

    Replace it with this:

    <script src="https://static-interlogyllc.netdna-ssl.com/static/feedback2.js?3.1.409" type="text/javascript"></script>

    <script type="text/javascript">

    new JotformFeedback({

    formId:'11014249601',

    base:'https://secure.jotform.com/',

    windowTitle:'Employment',

    background:'#FFA500',

    fontColor:'#FFFFFF',

    type:false,

    height:500,

    width:700

    });

    </script>

    **Base on my research, script with src tag can only contain whitespace or comments. This is the reason why, but can you can freely separate them as seen above to counter the error.

    Thanks!