Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<script>↩
function go() {↩
var r = document.getSelection().getRangeAt(0).cloneRange();↩
a.type = "";↩
r.insertNode(b);↩
}↩
</script>↩
<body onload=go()>↩
<input id="a" autofocus type="date">↩
<summary id="b">x</summary>↩