diff --git a/demo/index.html b/demo/index.html index 78270ca..c7785df 100644 --- a/demo/index.html +++ b/demo/index.html @@ -66,7 +66,7 @@ } .output { margin-top: 20px; - word-wrap: break-word; + white-space: pre-wrap; font-family: monospace; } @@ -110,7 +110,7 @@
iron-form works with native and custom elements, and can preven
@@ -139,7 +139,7 @@ subm
@@ -161,7 +161,7 @@ To customize the request sent to the server, you can listen to the iro
this.request.params['sidekick'] = 'Robin';
});
form3.addEventListener('iron-form-submit', function(event) {
- this.querySelector('.output').innerHTML = JSON.stringify(event.detail);
+ this.querySelector('.output').innerText = JSON.stringify(event.detail, undefined, 2);
});
@@ -186,7 +186,7 @@ Example of an iron-form reacting to state changes
@@ -252,7 +252,7 @@ iron-form respects nested elements