https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 7c6088210a58cad0f59367ca56bbfadd758069bd authored by Koji Ishii on 03 April 2018, 22:27:32 UTC
Fix a typo in wpt/css/css-text-decor/text-emphasis-style-001.html
Tip revision: 7c60882
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