Support » Fixing WordPress » Stylesheet and script insertion fails HTML5 validation

  • The W3C Validator gives me the following error:

    “Element link is missing required attribute property.”
    <link rel='stylesheet' id='easyazon-bootstrap-css' href="http://crosswebideas.com/wp-content/plugins/easyazon-pro-3.0.9/resources/vendor/bootstrap/css/bootstrap.min.css?370f27" type='text/css' media='all' />

    The plugin developer assures me that this is a WordPress issue and that his code is correct. It certainly appears to be identical to similar items, and is inserted in the same place.

    Any reason why the validator might be picking this up?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Are you sure that this is the correct line? I cannot see anything wrong with it.

    Thread Starter donmcleman

    (@donmcleman)

    Yes, this is the correct line, I’ve done a search within the source code and this is what comes up.

    This is the actual code quoted in the error:

    …?00dbd1" type='text/css' media='all' /><link rel='stylesheet' id='easyazon-pro…

    My original post included the first link in the pair, ie. in front of where the validator said the problem lay. The second link looks equally correct:

    <link rel='stylesheet' id='easyazon-pro-frontend-css' href="http://crosswebideas.com/wp-content/plugins/easyazon-pro-3.0.9/resources/frontend/easyazon-pro.css?00dbd1" type='text/css' media='all' />

    I’ll try running the page through a different validator to see if there’s a clearer idea of what’s wrong.

    Thread Starter donmcleman

    (@donmcleman)

    I’ve just visited http://www.onlinewebcheck.com:

    Their explanation is:

    This “link” element is not in the “head” section (which it must be in if the “itemprop” attribute is not used). Please check for missing or misplaced “head” elements or move this “link” element into the “head” section. The attributes will not be checked until this is corrected.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Stylesheet and script insertion fails HTML5 validation’ is closed to new replies.