reflected-changing-longdesc-manual.html (508B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>Longdesc test: Reflection when longdesc changes</title> 5 </head> 6 <body> 7 <img src="picture.png" alt="the image" longdesc="fail.html"> 8 <script> 9 var failingResult = document.querySelector('img[longdesc]').longDesc; 10 var newValue = '<img src="picture.png" alt="the image" longdesc="pass.html">'; 11 12 document.querySelector('img').outerHTML = newValue; 13 document.location.href = document.querySelector('img[longdesc]').longDesc; 14 </script> 15 </body> 16 </html>