Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | <!DOCTYPE html> |
michael@0 | 2 | <html class="reftest-wait"> |
michael@0 | 3 | <head> |
michael@0 | 4 | <script type="text/javascript"> |
michael@0 | 5 | |
michael@0 | 6 | var img = document.createElement("img"); |
michael@0 | 7 | img.setAttributeNS(null, "usemap", "#map"); |
michael@0 | 8 | img.setAttributeNS(null, "src", "data:image/gif;base64,R0lGODlhEwATAKIAAP//AMzMADMzAP8AAAAAAP///wAAAAAAACH5BAEAAAUALAAAAAATABMAAANWWLrUTisyEoC1oUlFr8dQRHykFRad+Y0gdzlv86KVKdsskOUAjHu312rFK5FuxaMNIMgYe85GrVfKZVDAR7DHmVoG4IHn6vqEgZLU90xOq8OazUS7SQAAOw=="); |
michael@0 | 9 | |
michael@0 | 10 | function boom() |
michael@0 | 11 | { |
michael@0 | 12 | map = document.createElement("map"); |
michael@0 | 13 | map.setAttributeNS(null, "name", "map"); |
michael@0 | 14 | area = document.createElement("area"); |
michael@0 | 15 | map.appendChild(area); |
michael@0 | 16 | span = document.createElement("span"); |
michael@0 | 17 | span.appendChild(img); |
michael@0 | 18 | td = document.createElement("td"); |
michael@0 | 19 | span.appendChild(td); |
michael@0 | 20 | map.appendChild(span); |
michael@0 | 21 | document.body.appendChild(map); |
michael@0 | 22 | boom2(); |
michael@0 | 23 | } |
michael@0 | 24 | |
michael@0 | 25 | function boom2() |
michael@0 | 26 | { |
michael@0 | 27 | // For reliable reproduction, need a flush here. |
michael@0 | 28 | var x = document.body.offsetWidth; |
michael@0 | 29 | |
michael@0 | 30 | // needs to be async, apparently. |
michael@0 | 31 | setTimeout(boom3, 0); |
michael@0 | 32 | } |
michael@0 | 33 | |
michael@0 | 34 | function boom3() |
michael@0 | 35 | { |
michael@0 | 36 | span.parentNode.removeChild(span); |
michael@0 | 37 | document.documentElement.removeAttribute("class"); |
michael@0 | 38 | } |
michael@0 | 39 | |
michael@0 | 40 | </script> |
michael@0 | 41 | </head> |
michael@0 | 42 | |
michael@0 | 43 | <body onload="boom();"></body> |
michael@0 | 44 | |
michael@0 | 45 | </html> |