Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hyperscript

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hyperscript - npm Package Compare versions

Comparing version 1.3.2 to 1.4.0

2

index.js

@@ -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()
})
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc