https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 29ad6b8c4b678cdb1ab4649f8b3acf54cd56bccc authored by Anne van Kesteren on 24 September 2018, 14:41:07 UTC
Fetch/HTTP: test WWW-Authenticate parsing
Tip revision: 29ad6b8
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