From 5bbc7dff1aab8daaabf339afdc19ed35a6494157 Mon Sep 17 00:00:00 2001 From: "Christopher J. Brody" Date: Fri, 3 Jul 2020 02:10:42 -0400 Subject: [PATCH 1/4] test some European HTML entities --- test/html/normalize.vows.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/html/normalize.vows.js b/test/html/normalize.vows.js index 54fdd45f5..274beb75e 100644 --- a/test/html/normalize.vows.js +++ b/test/html/normalize.vows.js @@ -85,5 +85,9 @@ wows.describe('html normalizer').addBatch({ var dom = new DOMParser().parseFromString('','text/xml'); assert(dom+'', ''); + }, + 'Euro characters': function () { + var dom = new DOMParser().parseFromString('
ÄäÅåÆÖöØ€
','text/html'); + assert(dom+'', '
ÄäÅåÆÖöØ€
'); } }).export(module); From 6efa0471f66a7ab465b964ab5da2784bda50c50c Mon Sep 17 00:00:00 2001 From: "Christopher J. Brody" Date: Fri, 3 Jul 2020 02:13:52 -0400 Subject: [PATCH 2/4] add an extra comment --- test/html/normalize.vows.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/html/normalize.vows.js b/test/html/normalize.vows.js index 274beb75e..06d3ca327 100644 --- a/test/html/normalize.vows.js +++ b/test/html/normalize.vows.js @@ -88,6 +88,8 @@ wows.describe('html normalizer').addBatch({ }, 'Euro characters': function () { var dom = new DOMParser().parseFromString('
ÄäÅåÆÖöØ€
','text/html'); + // For the future, it may be nicer to use \uxxxx in the assert strings + // rather than pasting in multi-byte UTF-8 Unicode characters assert(dom+'', '
ÄäÅåÆÖöØ€
'); } }).export(module); From c3a6306194cc78d8175652d03d3d676c7b391c08 Mon Sep 17 00:00:00 2001 From: Chris Brody Date: Fri, 3 Jul 2020 02:29:51 -0400 Subject: [PATCH 3/4] add more European characters to complete the list Co-authored-by: Christian Bewernitz --- test/html/normalize.vows.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/html/normalize.vows.js b/test/html/normalize.vows.js index 06d3ca327..d5a880597 100644 --- a/test/html/normalize.vows.js +++ b/test/html/normalize.vows.js @@ -87,9 +87,9 @@ wows.describe('html normalizer').addBatch({ assert(dom+'', ''); }, 'Euro characters': function () { - var dom = new DOMParser().parseFromString('
ÄäÅåÆÖöØ€
','text/html'); + var dom = new DOMParser().parseFromString('
ÄäÅåÆæÖöØøßÜü€
','text/html'); // For the future, it may be nicer to use \uxxxx in the assert strings // rather than pasting in multi-byte UTF-8 Unicode characters - assert(dom+'', '
ÄäÅåÆÖöØ€
'); + assert(dom+'', '
ÄäÅåÆæÖöØøßÜü€
'); } }).export(module); From 6b563fc1804f4c3a73b7d21f9a56a16968f352d7 Mon Sep 17 00:00:00 2001 From: Chris Brody Date: Fri, 3 Jul 2020 02:43:54 -0400 Subject: [PATCH 4/4] update test label --- test/html/normalize.vows.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/html/normalize.vows.js b/test/html/normalize.vows.js index d5a880597..f20ee02e0 100644 --- a/test/html/normalize.vows.js +++ b/test/html/normalize.vows.js @@ -86,7 +86,7 @@ wows.describe('html normalizer').addBatch({ var dom = new DOMParser().parseFromString('','text/xml'); assert(dom+'', ''); }, - 'Euro characters': function () { + 'European entities': function () { var dom = new DOMParser().parseFromString('
ÄäÅåÆæÖöØøßÜü€
','text/html'); // For the future, it may be nicer to use \uxxxx in the assert strings // rather than pasting in multi-byte UTF-8 Unicode characters