hyperscript
Advanced tools
Comparing version 1.3.2 to 1.4.0
@@ -15,3 +15,3 @@ var split = require('browser-split') | ||
function parseClass (string) { | ||
var m = split(string, /([\.#]?[a-zA-Z0-9_-]+)/) | ||
var m = split(string, /([\.#]?[a-zA-Z0-9_:-]+)/) | ||
if(/^\.|#/.test(m[1])) | ||
@@ -18,0 +18,0 @@ e = document.createElement('div') |
{ | ||
"name": "hyperscript", | ||
"version": "1.3.2", | ||
"version": "1.4.0", | ||
"homepage": "https://github.com/dominictarr/hyperscript", | ||
@@ -22,3 +22,4 @@ "repository": { | ||
"data-set": "~0.2.2", | ||
"html-element": "~1.2.8" | ||
"html-element": "~1.2.8", | ||
"tape": "~2.3.0" | ||
}, | ||
@@ -25,0 +26,0 @@ "browser": { |
@@ -44,3 +44,4 @@ # HyperScript | ||
Create an `HTMLElement`. first argument must be the tag name. | ||
Create an `HTMLElement`. The first argument must be the tag name, you may use a | ||
fully qualified tagname for building e.g. XML documents: `h('ns:tag'). | ||
@@ -47,0 +48,0 @@ ### classes & id |
@@ -29,2 +29,7 @@ | ||
test('can use namespace in name', function(t){ | ||
t.equal(h('myns:mytag').outerHTML, '<myns:mytag></myns:mytag>'); | ||
t.end() | ||
}) | ||
test('can use id selector', function(t){ | ||
@@ -148,4 +153,4 @@ t.equal(h('div#frame').outerHTML, '<div id="frame"></div>') | ||
simu.click(button) | ||
t.assert(!onClick.called) | ||
t.assert(!onClick.called, 'click listener was not triggered') | ||
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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
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
45693
263
160
5
1
+ Addedtape@~2.3.0
+ Addeddeep-equal@0.1.2(transitive)
+ Addeddefined@0.0.0(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedjsonify@0.0.1(transitive)
+ Addedresumer@0.0.0(transitive)
+ Addedtape@2.3.3(transitive)
+ Addedthrough@2.3.8(transitive)