Test Case for zjrJS.Doc.etn() - Beta Test Suite for zjrJS

This information lives on a webpage hosted at the following web address: 'https://www.omegajunior.net/code/zjrjs/beta.php'.

Showing whether zjrJS.Doc.etn() actually works.

Used zjrJS Version:

Stable Minified version 20141202t2322 of zjrJS.

There is no newer Beta version available.


 

Preconditions
Javascript must be allowed to run on this page.
Page must contain meta elements.

Successful When...
In the form, after pressing the ETN button, the Output box receives a tally of all meta element in this page.
Actions
Output

Test Code:

          var test=({
	run: function () {"use strict";
		if ( !test.require( "zjrJS.Doc.etn", "function" ) ) {
			return false;
		}
		var m = [], one = window.document.forms.one.elements;
		m = zjrJS.Doc.etn("meta");
		one.metas.value = m.length;
		m = one = null;
		return false;
	}
});
        

Download:

Download zjrJS’ latest stable build (20141202t2322) minified (7.1KB).

Download zjrJS’ latest stable build (20141202t2322) (11.9KB).