Created
July 1, 2013 05:37
-
-
Save rystsov/5898584 to your computer and use it in GitHub Desktop.
Bug I met in chrome, already known :( https://code.google.com/p/chromium/issues/detail?id=117307
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<div id="canvas"></div> | |
<script type="text/javascript"> | |
var canvas = document.getElementById("canvas"); | |
var input = document.createElement("input"); | |
input.type = "textbox"; | |
input.value = "click here and then on address"; | |
input.style.cssText += ";width:200px;" | |
input.addEventListener("blur", function(){ | |
console.info("[blur"); | |
input.parentNode.removeChild(input); | |
console.info("blur]"); | |
}, false); | |
canvas.appendChild(input); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment