You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chrome displays the text correctly: 'Hello World, I am a Custom Element!',
but IE11 displays 'This is local DOM' very briefly and then removes it and displays nothing. Is this a bug?
<html>
<head>
<script src="webcomponentsjs/webcomponents.js"></script>
<link rel="import" href="polymer/polymer.html" />
</head>
<body unresolved>
<x-custom></x-custom>
<dom-module id="x-custom">
<template>
<div>This is local DOM</div>
</template>
</dom-module>
<script>
Polymer({
is: 'x-custom',
properties: {
user: String,
isHappy: Boolean,
count: {
type: Number,
readOnly: true,
notify: true
}
},
ready: function () {
this.innerHTML = 'Hello World, I am a <b>Custom Element!</b>';
}
});
document.body.removeAttribute('unresolved');
</script>
</body>
</html>
The text was updated successfully, but these errors were encountered:
When defining an element in the main document on a browser that doesn't support HTMLImports natively, you need to wait for the HTMLImportsLoaded event to call Polymer. For example,
Chrome displays the text correctly: 'Hello World, I am a Custom Element!',
but IE11 displays 'This is local DOM' very briefly and then removes it and displays nothing. Is this a bug?
The text was updated successfully, but these errors were encountered: