diff --git a/lib/entities.js b/lib/entities.js index 81d708200..804f59f27 100644 --- a/lib/entities.js +++ b/lib/entities.js @@ -69,7 +69,7 @@ exports.entityMap = { yacute: "ý", thorn: "þ", yuml: "ÿ", - nbsp: " ", + nbsp: "\u00a0", iexcl: "¡", cent: "¢", pound: "£", diff --git a/test/html/normalize.vows.js b/test/html/normalize.vows.js index 349ed697f..54fdd45f5 100644 --- a/test/html/normalize.vows.js +++ b/test/html/normalize.vows.js @@ -13,13 +13,8 @@ wows.describe('html normalizer').addBatch({ assert(dom+'', '
<123e>&<a
'); var dom = new DOMParser().parseFromString('
 © ©
','text/html'); - assert.skip( - dom+'', '
\u00a0\u00a9&nbsp&copy
', - 'see https://github.com/xmldom/xmldom/issues/57' - ); - assert(dom+'', '
\u00a9&nbsp&copy
'); + assert(dom+'', '
\u00a0\u00a9&nbsp&copy
'); - var dom = new DOMParser().parseFromString('','text/html'); assert(dom+'', ''); },