babelacc

compare different implementations of the text alternative computation  https://p.ce9e.org/babelacc/
git clone https://git.ce9e.org/babelacc.git

commit
2177d8e64bf4e2800a5f237c9155faca8b4b0bf2
parent
7ba6e6c854f553d5c925a18f22a56b6207accb0f
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2018-02-08 14:53
allow to check an element deeper in the structure

Diffstat

M index.html 4 ++--
M src/babel.js 2 +-

2 files changed, 3 insertions, 3 deletions


diff --git a/index.html b/index.html

@@ -11,8 +11,8 @@
   11    11 	<h1>Babelacc</h1>
   12    12 
   13    13 	<p>Enter some HTML to compare different implementations of the text
   14    -1 	alternative computation. Only the first element and its contents are
   15    -1 	considered.</p>
   -1    14 	alternative computation. Only the first element (or an element with
   -1    15 	<code>id="test"</code>) and its contents are considered.</p>
   16    16 	<p>Inline CSS is supported, but no javascript or external CSS.</p>
   17    17 
   18    18 	<form id="ba-form" method="GET">

diff --git a/src/babel.js b/src/babel.js

@@ -56,7 +56,7 @@ var run = function(html) {
   56    56 	results.innerHTML = '';
   57    57 
   58    58 	return Promise.all(Object.keys(implementations).map(function(key) {
   59    -1 		var p = implementations[key](preview.children[0] || preview);
   -1    59 		var p = implementations[key](preview.querySelector('#test') || preview.children[0] || preview);
   60    60 
   61    61 		return Promise.resolve(p).then(function(result) {
   62    62 			var tr = document.createElement('tr');