hyperscript
Advanced tools
Comparing version 1.4.6 to 1.4.7
@@ -14,3 +14,7 @@ var split = require('browser-split') | ||
function parseClass (string) { | ||
var m = split(string, /([\.#]?[a-zA-Z0-9_:-]+)/) | ||
// Our minimal parser doesn’t understand escaping CSS special | ||
// characters like `#`. Don’t use them. More reading: | ||
// https://mathiasbynens.be/notes/css-escapes . | ||
var m = split(string, /([\.#]?[^\s#.]+)/) | ||
if(/^\.|#/.test(m[1])) | ||
@@ -17,0 +21,0 @@ e = document.createElement('div') |
{ | ||
"name": "hyperscript", | ||
"version": "1.4.6", | ||
"version": "1.4.7", | ||
"homepage": "https://github.com/dominictarr/hyperscript", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -124,3 +124,3 @@ # HyperScript | ||
Each item in the array is treated like a ordinary child. (string or HTMLElement) | ||
this is uesful when you want to iterate over an object: | ||
this is useful when you want to iterate over an object: | ||
@@ -127,0 +127,0 @@ ``` js |
@@ -155,1 +155,7 @@ | ||
}) | ||
test('unicode selectors', function (t) { | ||
t.equal(h('.⛄').outerHTML, '<div class="⛄"></div>') | ||
t.equal(h('span#⛄').outerHTML, '<span id="⛄"></span>') | ||
t.end() | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47031
273