Navigation Menu

Skip to content
This repository has been archived by the owner on Dec 7, 2017. It is now read-only.

Commit

Permalink
Tag version 0.8.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
philipwalton committed Jan 30, 2015
1 parent 8e422a7 commit bbd95fa
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 12 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
@@ -1,3 +1,7 @@
### 0.8.2 (January 30, 2015)

* Fix an issue where the CLI doesn't work on windows.

### 0.8.1 (May 30, 2014)

* Update SUIT CSS URL.
Expand Down Expand Up @@ -78,4 +82,4 @@

### 0.1.1 (June 10, 2013)

* First public release.
* First public release.
43 changes: 43 additions & 0 deletions bin/html-inspector-jsdom
@@ -0,0 +1,43 @@
#!/usr/bin/env node

var fs = require('fs');
var jsdom = require('jsdom');
var program = require('commander');

program
.version(require('../package.json').version)
.usage('[options] <file or url>')
.option('-c, --config [file]',
'Configuration file (./html-inspector-config.js)',
'./html-inspector-config.js')
.parse(process.argv);

if (program.args.length === 0) {
program.help();
process.exit();
}

// Try to resolve local file, otherwise assume and pass url
// var inputLocation = program.args[0];
// inspectLocation = fs.existsSync(path.resolve(inputLocation)) ? path.resolve(inputLocation) : inputLocation;


// if (program.config) {
// configFile = fs.existsSync(path.resolve(program.config))
// ? path.resolve(program.config) : "";
// }

jsdom.env(
program.args[0],
['html-inspector.js'],
function(errors, window) {

window.HTMLInspector.inspect({
onComplete: function(errors) {
errors.forEach(function(error) {
console.log(error.message);
});
}
});
}
)
2 changes: 1 addition & 1 deletion bower.json
@@ -1,6 +1,6 @@
{
"name": "html-inspector",
"version": "0.8.1",
"version": "0.8.2",
"main": "html-inspector.js",
"ignore": [
"bin",
Expand Down
32 changes: 23 additions & 9 deletions html-inspector.js
@@ -1,10 +1,10 @@
/*!
* HTML Inspector - v0.8.1
* HTML Inspector - v0.8.2
*
* Copyright (c) 2014 Philip Walton <http://philipwalton.com>
* Copyright (c) 2015 Philip Walton <http://philipwalton.com>
* Released under the MIT license
*
* Date: 2014-05-30
* Date: 2015-01-30
*/

(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
Expand Down Expand Up @@ -370,7 +370,7 @@ var isArray = require('../lang/isArray');


},{"../lang/isArray":9,"./forOwn":16}],15:[function(require,module,exports){

var hasOwn = require('./hasOwn');

var _hasDontEnumBug,
_dontEnums;
Expand Down Expand Up @@ -412,11 +412,25 @@ var isArray = require('../lang/isArray');
}
}


if (_hasDontEnumBug) {
var ctor = obj.constructor,
isProto = !!ctor && obj === ctor.prototype;

while (key = _dontEnums[i++]) {
// since we aren't using hasOwn check we need to make sure the
// property was overwritten
if (obj[key] !== Object.prototype[key]) {
// For constructor, if it is a prototype object the constructor
// is always non-enumerable unless defined otherwise (and
// enumerated above). For non-prototype objects, it will have
// to be defined on this object, since it cannot be defined on
// any prototype objects.
//
// For other [[DontEnum]] properties, check if the value is
// different than Object prototype value.
if (
(key !== 'constructor' ||
(!isProto && hasOwn(obj, key))) &&
obj[key] !== Object.prototype[key]
) {
if (exec(fn, obj, key, thisObj) === false) {
break;
}
Expand All @@ -433,7 +447,7 @@ var isArray = require('../lang/isArray');



},{}],16:[function(require,module,exports){
},{"./hasOwn":17}],16:[function(require,module,exports){
var hasOwn = require('./hasOwn');
var forIn = require('./forIn');

Expand Down Expand Up @@ -1242,7 +1256,7 @@ var elementData = {
}

// ============================================================
// Element categories and the elements tht are in those
// Element categories and the elements that are in those
// categories. Elements may be in more than one category
//
// http://drafts.htmlwg.org/html/master/iana.html#element-content-categories
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "html-inspector",
"title": "HTML Inspector",
"version": "0.8.1",
"version": "0.8.2",
"description": "HTML Inspector is a code quality tool to help you and your team write better markup. It's written in JavaScript and runs in the browser, so testing your HTML has never been easier.",
"license": "MIT",
"author": {
Expand Down

0 comments on commit bbd95fa

Please sign in to comment.