• Hi there,
    unfortunately the latest version of the plugin triggers a validation issue on sites having doctype XHTML 1.0 Strict.
    The error is the following:
    required attribute "type" not specified
    and it is caused by this JS code:
    <script>jQueryWP = jQuery;</script>
    which is added by the following PHP code:
    $content = preg_replace( $pattern, '$0<script>jQueryWP = jQuery;</script>', $content );

    The fix is quite easy, just add a type="text/javascript" to the <script> tag. I hope that you can fix this in next version, as it prevents correct validation.

    https://www.ads-software.com/plugins/page-links-to/

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

    (@markjaquith)

    I’m curious if you’re actually using XML features on your sites. I’d thought everyone had given up on the “HTML as a valid subset of XML” dream a decade ago. I’ve pretty much embraced HTML5.

    Thread Starter Marco Chiesi

    (@marcochiesi)

    Hi Mark,
    sure, HTML5 is the new trend, but there’s still plenty of sites and themes that are based on XHTML. The sites for which I made this request were made a few years ago and use XHTML themes based on the Genesis Framework, which I suppose you should know very well. By the way Studiopress is still providing several XHTML themes besides the new HTML5 themes.
    At the end of day, I would recommend to add the type="text/javascript" in order to ensure validability with all themes out there.
    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Strict validation issue’ is closed to new replies.