https://github.com/web-platform-tests/wpt
Raw File
Tip revision: abe917f7bffefea2cadd1c3c501d50339f5c2d9c authored by Hallvord R. M. Steen on 12 October 2015, 12:04:22 UTC
Removing some 'popups must be enabled' messages
Tip revision: abe917f
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