Skip to content

Instantly share code, notes, and snippets.

@rystsov
Created July 1, 2013 05:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rystsov/5898584 to your computer and use it in GitHub Desktop.
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
<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