Merge #2075 into next (#2175)

* fix: Access document.activeElement through a function that eats errors for IE (#2075)

* test: inline iframe.js so ospec doesn't try to run it
This commit is contained in:
Pierre-Yves Gérardy 2018-11-08 00:42:50 +01:00 committed by Isiah Meadows
parent b0030047a7
commit d6489e3b3f
5 changed files with 396 additions and 341 deletions

View file

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<div id="root"></div>
<script src="../../../mithril.js"></script>
<script>
var count = 0
var Button = {
view: function() {
return m(
"button",
{onclick: function() { count += 1 }},
"Inside the iframe: " + count)
}
}
m.mount(document.getElementById("root"), Button)
</script>
</body>
</html>

View file

@ -0,0 +1,9 @@
<html>
<body>
Various parent website content.
There should be a clickable button below, which is inside an iframe containing a mithril app:
<div>
<iframe src="./iframe.html"></iframe>
</div>
</body>
</html>