readabilitySAX.js
function(tagName, parent){
	this.name = tagName;
	this.parent = parent;
	this.attributes = {};
	this.children = [];
	this.tagScore = 0;
	this.attributeScore = 0;
	this.totalScore = 0;
	this.elementData = "";
	this.info = {
		textLength: 0,
		linkLength: 0,
		commas:		0,
		density:	0,
		tagCount:	{}
	};
	this.isCandidate = false;
}
function(tagName, parent){
	this.name = tagName;
	this.parent = parent;
	this.attributes = {};
	this.children = [];
	this.tagScore = 0;
	this.attributeScore = 0;
	this.totalScore = 0;
	this.elementData = "";
	this.info = {
		textLength: 0,
		linkLength: 0,
		commas:		0,
		density:	0,
		tagCount:	{}
	};
	this.isCandidate = false;
}
function ( tagName , parent ) { this . name = tagName ; this . parent = parent ; this . attributes = { } ; this . children = [ ] ; this . tagScore = 0 ; this . attributeScore = 0 ; this . totalScore = 0 ; this . elementData = "" ; this . info = { textLength : 0 , linkLength : 0 , commas : 0 , density : 0 , tagCount : { } } ; this . isCandidate = false ; }
1. the tree element
1 . the tree element