Support » Fixing WordPress » What do i need to do to fix this code

  • The w3c validator is seeing al kinds of errors in this code. As I am new to HTML I am slightly lost as to how to resolve this. The errors dont seem to make sense.

    <script type=”IN/FollowCompany” data-id=”2869277″ data-counter=”none”></script>

    Theses are the errors.

    there is no attribute “data-id”
    there is no attribute “data-counter”

Viewing 1 replies (of 1 total)
  • Hi

    Those two attributes are only valid in HTML5. Your theme most likely is using XHTML and thus they are unknown to the w3c validator as they are not part of XHTML. That is a harmless error. I would say ignore it.

Viewing 1 replies (of 1 total)
  • The topic ‘What do i need to do to fix this code’ is closed to new replies.