https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 48d50c67e4ccb632bb1fb5fcf15eab35a3f9c4ee authored by Youenn Fablet on 23 March 2018, 05:15:23 UTC
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=183928
Tip revision: 48d50c6
reflected-changing-longdesc-manual.html
<!DOCTYPE html>
<html>
 <head>
  <title>Longdesc test: Reflection when longdesc changes</title>
 </head>
 <body>
  <img src="picture.png" alt="the image" longdesc="fail.html">
  <script>
    var failingResult = document.querySelector('img[longdesc]').longDesc;
    var newValue = '<img src="picture.png" alt="the image" longdesc="pass.html">';

    document.querySelector('img').outerHTML = newValue;
    document.location.href = document.querySelector('img[longdesc]').longDesc;
  </script>
 </body>
</html>
back to top