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

domify

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

domify - npm Package Compare versions

Comparing version 0.0.3 to 0.1.0

build/build.css

2

component.json
{
"name": "domify",
"version": "0.0.3",
"version": "0.1.0",
"description": "turn HTML into DOM elements",

@@ -5,0 +5,0 @@ "keywords": ["dom", "html", "client", "browser", "component"],

0.1.0 / 2012-10-24
==================
* add support for body elements with classes [timoxley]
* add removal of dummy parent div [timoxley]
* fix tests
* fix Makefile
0.0.3 / 2012-08-28

@@ -3,0 +11,0 @@ ==================

@@ -38,5 +38,5 @@

if (tag == 'body') {
var el = document.createElement('body');
el.innerHTML = stripBody(html);
return el;
var el = document.createElement('html');
el.innerHTML = html;
return el.removeChild(el.lastChild);
}

@@ -57,15 +57,3 @@

return el.lastChild;
return el.removeChild(el.lastChild);
};
/**
* Strip body tags from `html`.
*
* @param {String} html
* @return {String}
* @api private
*/
function stripBody(html) {
return html.replace(/^\s*<body[^>]*>/, '').replace(/<\/body>\s*$/, '');
}
{
"name": "domify"
, "version": "0.0.3"
, "version": "0.1.0"
, "description": "turn HTML into DOM elements"

@@ -5,0 +5,0 @@ , "keywords": ["dom", "html", "client", "browser", "component"]

Sorry, the diff of this file is not supported yet

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