<script>
    if (window.layoutTestController)
        layoutTestController.dumpAsText();

    onload = function()
    {
        document.body.attributes.setNamedItem(null);
    }
</script>
This passes if it does not crash.  (see https://bugs.webkit.org/show_bug.cgi?id=18958)
