chromium/third_party/blink/web_tests/http/tests/linkHeader/link-header-skips-invalid-headers.php

<?php
header("Link: <http://foo.com/>; rel=preconnect; anchor=\"foo\"");
header("Link: <   http://wut.com.test/>; rel=preconnect", false);
?>
<!DOCTYPE html>
<script>
    if (window.testRunner) {
        testRunner.dumpAsText();
        testRunner.waitUntilDone();
    }
    if (window.internals) {
        internals.settings.setLogDnsPrefetchAndPreconnect(true);
    }
    if (!localStorage.getItem("reloaded")) {
        localStorage.setItem("reloaded",  true);
        location.reload();
    } else {
        localStorage.removeItem("reloaded");
    }
</script>
This test check if a Link header triggered a dns prefetch, after an invalid header.
<script>
    if (window.testRunner)
        testRunner.notifyDone();
</script>