<!DOCTYPE html>
<script src="../include.js"></script>
<script>
    test(() => {
        for (const elementName of ["link", "a", "area", "img", "iframe", "script"]) {
            const element = document.createElement(elementName);
            println(`${elementName} referrerPolicy initial value: '${element.referrerPolicy}'`);
            element.referrerPolicy = "invalid";
            println(`${elementName} referrerPolicy value after setting to "invalid": '${element.referrerPolicy}'`);
            element.