@wordpress/html-entities
Advanced tools
Comparing version 2.5.0 to 2.6.0
### WordPress - Web publishing software | ||
Copyright 2011-2019 by the contributors | ||
Copyright 2011-2020 by the contributors | ||
@@ -5,0 +5,0 @@ This program is free software; you can redistribute it and/or modify |
{ | ||
"name": "@wordpress/html-entities", | ||
"version": "2.5.0", | ||
"version": "2.6.0", | ||
"description": "HTML entity utilities for WordPress.", | ||
@@ -25,3 +25,3 @@ "author": "The WordPress Contributors", | ||
"dependencies": { | ||
"@babel/runtime": "^7.4.4" | ||
"@babel/runtime": "^7.8.3" | ||
}, | ||
@@ -31,3 +31,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "2080b50d4a41c9f746485519d1dc368dd9d9354d" | ||
"gitHead": "41fc84af285da696c65c235331ee245dfe23971d" | ||
} |
@@ -24,4 +24,9 @@ let _decodeTextArea; | ||
if ( undefined === _decodeTextArea ) { | ||
if ( document.implementation && document.implementation.createHTMLDocument ) { | ||
_decodeTextArea = document.implementation.createHTMLDocument( '' ).createElement( 'textarea' ); | ||
if ( | ||
document.implementation && | ||
document.implementation.createHTMLDocument | ||
) { | ||
_decodeTextArea = document.implementation | ||
.createHTMLDocument( '' ) | ||
.createElement( 'textarea' ); | ||
} else { | ||
@@ -28,0 +33,0 @@ _decodeTextArea = document.createElement( 'textarea' ); |
@@ -22,2 +22,7 @@ /** | ||
} ); | ||
it( 'should not care about leading zeros on entity codes', () => { | ||
const html = 'Jim's mother's post's title.'; | ||
const expected = "Jim's mother's post's title."; | ||
expect( decodeEntities( html ) ).toEqual( expected ); | ||
} ); | ||
} ); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
29640
130
Updated@babel/runtime@^7.8.3