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

elements-lite

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elements-lite - npm Package Compare versions

Comparing version 0.1.10 to 0.1.11

6

elements.js

@@ -5,3 +5,3 @@

/*
* @version 0.1.10
* @version 0.1.11
* @author Lauri Rooden - https://github.com/litejs/elements-lite

@@ -21,3 +21,3 @@ * @license MIT License - http://lauri.rooden.ee/mit-license.txt

, proto = (root.HTMLElement || root.Element || El)[P]
, el_re = /([.#:[])([-\w]+)(?:=([-\w]+)])?/g
, el_re = /([.#:[])([-\w]+)(?:=([-\w]+)])?]?/g

@@ -216,3 +216,3 @@

o == "#" ? "_.id=='"+s+"'" :
"_.getAttribute(['"+s+"'])"+(v?"=='"+v+"'":"")
"_.getAttribute('"+s+"')"+(v?"=='"+v+"'":"")
)

@@ -219,0 +219,0 @@ return ""

@@ -1,6 +0,6 @@

!function(m,f,g){function e(a,b){var d,c={};a=a.replace(n,function(a,b,d,e){c["."==b?(b="class",c[b]&&(d=c[b]+" "+d),b):"#"==b?"id":d]=e||d;return""})||"div";d=(h[a]||(h[a]=f.createElement(a))).cloneNode(!0).set(c);return k[a]&&k[a](d,b)||d.set(b)}function l(a,b,d){if(a)for(d in b=e[g],b)a[d]=b[d];return a}var h={},k={},c=(m.HTMLElement||m.Element||e)[g],n=/([.#:[])([-\w]+)(?:=([-\w]+)])?/g;c.append=function(a,b){if(a){if("string"==typeof a||"number"==typeof a)a=e.text(a);else if(!("nodeType"in a)&&
"length"in a){for(var d=a.length,c=0,g=f.createDocumentFragment();c<d;)this.append.call(g,a[c++]);a=g}a.nodeType&&this.insertBefore(a,(!0===b?this.firstChild:"number"==typeof b?this.childNodes[b]:b)||null);a.append_hook&&a.append_hook()}return this};c.after=function(a,b){a.parentNode.append(this,b?a:a.nextSibling);return this};c.to=function(a,b){a.append(this,b);return this};c.hasClass=function(a){return RegExp("\\b"+a+"\\b").test(this.className)};c.addClass=function(a){this.className+=""==this.className?
!function(m,f,g){function e(a,b){var d,c={};a=a.replace(n,function(a,b,d,e){c["."==b?(b="class",c[b]&&(d=c[b]+" "+d),b):"#"==b?"id":d]=e||d;return""})||"div";d=(h[a]||(h[a]=f.createElement(a))).cloneNode(!0).set(c);return k[a]&&k[a](d,b)||d.set(b)}function l(a,b,d){if(a)for(d in b=e[g],b)a[d]=b[d];return a}var h={},k={},c=(m.HTMLElement||m.Element||e)[g],n=/([.#:[])([-\w]+)(?:=([-\w]+)])?]?/g;c.append=function(a,b){if(a){if("string"==typeof a||"number"==typeof a)a=e.text(a);else if(!("nodeType"in
a)&&"length"in a){for(var d=a.length,c=0,g=f.createDocumentFragment();c<d;)this.append.call(g,a[c++]);a=g}a.nodeType&&this.insertBefore(a,(!0===b?this.firstChild:"number"==typeof b?this.childNodes[b]:b)||null);a.append_hook&&a.append_hook()}return this};c.after=function(a,b){a.parentNode.append(this,b?a:a.nextSibling);return this};c.to=function(a,b){a.append(this,b);return this};c.hasClass=function(a){return RegExp("\\b"+a+"\\b").test(this.className)};c.addClass=function(a){this.className+=""==this.className?
a:this.hasClass(a)?"":" "+a;return this};c.rmClass=function(a){this.className=(" "+this.className+" ").replace(" "+a+" "," ").trim();return this};c.toggleClass=function(a,b){1==arguments.length&&(b=!this.hasClass(a));this[b?"addClass":"rmClass"](a);return b};c.empty=function(){for(var a;a=this.firstChild;)this.kill.call(a);return this};c.kill=function(){this.parentNode&&this.parentNode.removeChild(this);Event.removeAll&&Event.removeAll(this);this.kill_hook&&this.kill_hook();this.empty&&this.empty();
return this};c.on=function(a,b){Event.add(this,a,b);return this};c.non=function(a,b){Event.remove(this,a,b);return this};c.set=function(a){var b=typeof a,d;if(a)if("string"==b||"number"==b||a.nodeType||"length"in a)this.append(a);else for(b in a)d=a[b],"class"==b?this.addClass(d):"string"==typeof d?(this.setAttribute(b,d),"name"==b&&"\v"=="v"&&this.mergeAttributes(f.createElement("<INPUT name='"+b+"'/>"),!1)):d?this[b]=d:this.removeAttribute(b);return this};c._find=function(a){var b=0,d=["_"];a=a.replace(n,
function(a,b,c,e){d.push("."==b?"(' '+_.className+' ').indexOf(' "+c+" ')>-1":"#"==b?"_.id=='"+c+"'":"_.getAttribute(['"+c+"'])"+(e?"=='"+e+"'":""));return""})||"*";var c=this.getElementsByTagName(a),e=d.join("&&").fn();for(d.join("&&");a=c[b++];)if(e(a))return a.to?a:l(a)};c.find=f.querySelector?function(a){return this.querySelector(a)}:c._find;if(c===e[g]){var p=f.createElement;f.createElement=function(a){return l(p(a))};l(f.body)}e[g]=c;e.get=function(a){"string"==typeof a&&(a=f.getElementById(a));
function(a,b,c,e){d.push("."==b?"(' '+_.className+' ').indexOf(' "+c+" ')>-1":"#"==b?"_.id=='"+c+"'":"_.getAttribute('"+c+"')"+(e?"=='"+e+"'":""));return""})||"*";var c=this.getElementsByTagName(a),e=d.join("&&").fn();for(d.join("&&");a=c[b++];)if(e(a))return a.to?a:l(a)};c.find=f.querySelector?function(a){return this.querySelector(a)}:c._find;if(c===e[g]){var p=f.createElement;f.createElement=function(a){return l(p(a))};l(f.body)}e[g]=c;e.get=function(a){"string"==typeof a&&(a=f.getElementById(a));
return a&&a.to?a:l(a)};e.cache=function(a,b,c){h[a]="string"==typeof b?e(b):b;c&&(k[a]=c)};e.cache.el=h;e.cache.fn=k;e.text=function(a){return f.createTextNode(a)};m.El=e}(this,document,"prototype");

@@ -5,3 +5,3 @@

/*
* @version 0.1.10
* @version 0.1.11
* @author Lauri Rooden - https://github.com/litejs/elements-lite

@@ -8,0 +8,0 @@ * @license MIT License - http://lauri.rooden.ee/mit-license.txt

{
"name": "elements-lite",
"version": "0.1.10",
"version": "0.1.11",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "DOM buildel for browser",

@@ -6,2 +6,7 @@

@version 0.1.11
@date 2013-10-15
@stability 1 - Experimental
Elements

@@ -12,3 +17,3 @@ ========

Download [compressed][1]
(2741 bytes, 1219 bytes gzipped)
(2740 bytes, 1220 bytes gzipped)
or [uncompressed][2] source.

@@ -15,0 +20,0 @@

@@ -5,3 +5,3 @@

/*
* @version 0.1.10
* @version 0.1.11
* @author Lauri Rooden - https://github.com/litejs/elements-lite

@@ -8,0 +8,0 @@ * @license MIT License - http://lauri.rooden.ee/mit-license.txt

Sorry, the diff of this file is not supported yet

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