Skip to content

Commit

Permalink
Add shebang to tools/parse-test-data.js
Browse files Browse the repository at this point in the history
  • Loading branch information
aredridel committed Nov 12, 2012
1 parent 144f1ed commit 9888708
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions tools/parse-test-data.js 100644 → 100755
@@ -1,12 +1,13 @@
var fs= require('fs')
#!/usr/bin/env node
var fs = require('fs');

var doc = fs.readFileSync(process.argv[2])
var doc = fs.readFileSync(process.argv[2]);

var HTML5 = require('../lib/html5')
HTML5.enableDebug('tokenizer')
HTML5.enableDebug('parser')
var HTML5 = require('../lib/html5');
HTML5.enableDebug('tokenizer');
HTML5.enableDebug('parser');

var p = new HTML5.Parser()
p.parse(doc)
var p = new HTML5.Parser();
p.parse(doc);

require('util').puts(HTML5.serialize(p.tree.document))
require('util').puts(HTML5.serialize(p.tree.document));

0 comments on commit 9888708

Please sign in to comment.