• Resolved claude_blet

    (@claudeblet)


    Hello,

    In the generated source code of my site, I have this red line that I can not make valid (W3C Validator)! This is the line

    <body
    Data-rsssl = 1 class = "home blog logged-in admin-bar no-customize-support">

    Otherwise everything is normal with RSSSL.

    Can you help me ?

    Thank you in advance,
    Regards,

    Claude

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Mark

    (@markwolters)

    Hi Claude,

    I’ve tested on some other sites with the mixed content fixer enabled and those don’t return the fatal error, it could be there is something specific in your HTML which is causing this. What you can try is to remove the marker data-rsssl = 1 from your page source. You can do this in the following way: https://really-simple-ssl.com/knowledge-base/removing-mixed-content-fixer-comment-from-html-source/.

    Let me know if this resolved your issue!

    Mark

    Thread Starter claude_blet

    (@claudeblet)

    Good evening and thank you Mark,

    I have added the code to make it possible to remove the red line.

    But it does not work even by flushing the page cache several times! ??

    Again thanks in advance,

    Regards,

    Claude

    • This reply was modified 7 years, 7 months ago by claude_blet.
    Plugin Author Mark

    (@markwolters)

    Hi Claude,

    I’ve noticed the post on the website still has quotes around the =”1″. The latest version of the mixed content fixer doesn’t have these anymore. Can you try to edit to code snippet, removing the “” around the 1 and try again? Like this:

    add_filter("rsssl_fixer_output", "rsssl_comment_remover", 10, 1);
    
    function rsssl_comment_remover($buffer){
    
    //replace the comment with empty string
    
    $buffer = str_replace('data-rsssl=1', "", $buffer);
    
    return $buffer;
    
    }

    It might not make a difference though. I’ve noticed you have a <div> between the closing </head> element and opening <body> element. The validator probably thinks that after the </head> element the body starts, so it assigns a body to that div, when a few lines later your <body> tag opens it thinks it has found a duplicate body and therefore the error occurs. You can try to remove the div between the </head> and <body> tags. For more information and possible solutions see: https://stackoverflow.com/questions/9283409/html5-validation-error-body-start-tag-seen-but-an-element-of-the-same-type-was

    Mark

    Thread Starter claude_blet

    (@claudeblet)

    Hello and thanks again Mark

    Your code works perfectly, no more fatal error, and the approximation of the body following the </ head> is consistent.

    I thank you for all the help you have given me.

    Regards,

    Claude

    Plugin Author Mark

    (@markwolters)

    Hi Claude,

    great, glad to hear your issue is resolved!

    Mark

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    Just a note: To verify if there is an issue with the quotes in the marker, I just checked this html in the validator:

    <!DOCTYPE html>
    <html>
    <head>
      <title>test</title>
    </head>
    
    <body data-rsssl=1>
      Body of the site
    </body>
    </html>

    This passes without any problems.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘<body data-rsssl=1…’ is closed to new replies.