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

minimize

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minimize - npm Package Compare versions

Comparing version 1.7.0 to 1.7.1

9

lib/list.js

@@ -28,3 +28,4 @@ //

'default', 'ismap', 'novalidate', 'open', 'typemustmatch', 'truespeed',
'itemscope', 'autocomplete', 'download'
'itemscope', 'autocomplete', 'download', 'draggable', 'novalidate',
'sortable', 'spellcheck'
];

@@ -159,3 +160,7 @@

'autosave': 'input',
'bgcolor': ['body', 'col', 'colgroup', 'marquee', 'table', 'tbody', 'tfoot', 'td', 'th', 'tr']
'bgcolor': ['body', 'col', 'colgroup', 'marquee', 'table', 'tbody', 'tfoot', 'td', 'th', 'tr'],
'draggable': '*',
'novalidate': ['form'],
'sortable': ['table'],
'spellcheck': '*'
};
{
"name": "minimize",
"version": "1.7.0",
"version": "1.7.1",
"description": "Minimize HTML",

@@ -5,0 +5,0 @@ "main": "./lib/minimize",

@@ -16,4 +16,4 @@ # HTML minifier

**Minimize does not parse inline PHP or raw template files. Templates are not valid
HTML and this is outside the scope of the minimiz. The _output_ of the
**Minimize does not parse inline PHP or raw template files. Templates are not valid
HTML and this is outside the scope of the minimize. The _output_ of the
templaters should be parsed and minified.**

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

@@ -65,3 +65,3 @@ /*global beforeEach, afterEach*/

it('maps attributes to elements', function () {
expect(Object.keys(list.attributes).length).to.equal(113);
expect(Object.keys(list.attributes).length).to.equal(114);
expect(list.attributes.high).to.be.an('string');

@@ -68,0 +68,0 @@ expect(list.attributes.high).to.equal('meter');

@@ -271,3 +271,3 @@ 'use strict';

it('should retain values on spare attributes', function (done) {
it('should retain values on semi-boolean attributes', function (done) {
minimize.parse('<input autocomplete="off">', function (error, result) {

@@ -279,2 +279,9 @@ expect(result).to.equal('<input autocomplete=off>');

it('should remove values from boolean attributes', function (done) {
minimize.parse('<input disabled="true">', function (error, result) {
expect(result).to.equal('<input disabled>');
done();
});
});
it('should remove CDATA from scripts', function (done) {

@@ -281,0 +288,0 @@ minimize.parse(html.cdata, function (error, result) {

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