<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8" />
	<title>dialog - X-Tag</title>
	<!--
	<link rel="stylesheet" type="text/css" href="x-tag-components.css"/>
	<link rel="stylesheet" type="text/css" href="../src/main.css"/>
	-->
	<script src="x-tag-components.js"></script>
	<script src="../src/main.js"></script>
</head>

<body id="app">
Begin
<dialog>test</dialog>
End End End<br />
End End End<br />
End End End<br />
End End End<br />
End End End<br />
End End End<br />
End End End<br />
End End End<br />
End End End<br />
End End End<br />

<script>
document.addEventListener('DOMComponentsLoaded', function() {'use strict';
var dialog = document.querySelector('dialog');
dialog.show(); // works
/*
setTimeout(function () { // works
	dialog.close();
}, 2000);
*/
// dialog.showModal(); // works but not yet modally
// dialog.open = true; // works also
dialog.returnValue = 5;
// alert(dialog.open); // boolean true
// alert(dialog.returnValue); // string 5
// dialog.close(7); // works
// alert(dialog.returnValue); // string 7

});
</script>

</body>

</html>

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8" />
	<title>dialog - X-Tag</title>
	<!--
	<link rel="stylesheet" type="text/css" href="x-tag-components.css"/>
	<link rel="stylesheet" type="text/css" href="../src/main.css"/>
	-->
	<script src="x-tag-components.js"></script>
	<script src="../src/main.js"></script>
</head>

<body id="app">
Begin
<dialog>test</dialog>
End End End<br />
End End End<br />
End End End<br />
End End End<br />
End End End<br />
End End End<br />
End End End<br />
End End End<br />
End End End<br />
End End End<br />

<script>
document.addEventListener('WebComponentsReady', function() {'use strict';
var dialog = document.querySelector('dialog');
dialog.show(); // works
/*
setTimeout(function () { // works
	dialog.close();
}, 2000);
*/
// dialog.showModal(); // works but not yet modally
// dialog.open = true; // works also
dialog.returnValue = 5;
// alert(dialog.open); // boolean true
// alert(dialog.returnValue); // string 5
// dialog.close(7); // works
// alert(dialog.returnValue); // string 7

});
</script>

</body>

</html>

Move to event shared by polymer
Move to event shared by polymer
