Constructor | Type of Object |
---|---|
[new Text][0]['ownerDocument'] | Document |
[new Range][0]['startContainer'] | Document |
[new Range][0]['endContainer'] | Document |
[new Range][0]['commonAncestorContainer'] | Document |
[new Option][0]['ownerDocument'] | Document |
[new Option][0]['firstChild'] | Node/Window |
[new Option][0]['lastChild'] | Node/Window |
[new Image][0]['ownerDocument'] | Document |
[new Audio][0]['ownerDocument'] | Document |
[new DocumentFragment][0]['ownerDocument'] | Document |
[new Comment][0]['ownerDocument'] | Document |
Constructor | Type of Object |
---|---|
[new Audio][0]['ownerDocument'] | Document |
[new Text][0]['ownerDocument'] | Document |
[new Range][0]['commonAncestorContainer'] | Document |
[new Range][0]['endContainer'] | Document |
[new Range][0]['startContainer'] | Document |
[new Option][0]['ownerDocument'] | Document |
[new Option][0]['lastChild'] | Node/Window |
[new Option][0]['firstChild'] | Node/Window |
[new Image][0]['ownerDocument'] | Document |
[new DocumentFragment][0]['ownerDocument'] | Document |
[new Comment][0]['ownerDocument'] | Document |
Constructor | Type of Object |
---|---|
[new Comment][0]['ownerDocument'] | Document |
[new Text][0]['ownerDocument'] | Document |
[new Range][0]['startContainer'] | Document |
[new Range][0]['endContainer'] | Document |
[new Range][0]['commonAncestorContainer'] | Document |
[new DocumentFragment][0]['ownerDocument'] | Document |
Constructor | Type of Object |
---|---|
[new Audio][0]['ownerDocument'] | Document |
[new Text][0]['ownerDocument'] | Document |
[new Range][0]['commonAncestorContainer'] | Document |
[new Range][0]['endContainer'] | Document |
[new Range][0]['startContainer'] | Document |
[new Option][0]['ownerDocument'] | Document |
[new Option][0]['lastChild'] | Node/Window |
[new Option][0]['firstChild'] | Node/Window |
[new Image][0]['ownerDocument'] | Document |
[new DocumentFragment][0]['ownerDocument'] | Document |
[new Comment][0]['ownerDocument'] | Document |
Constructor | Type of Object |
---|---|
No Data enumerated. The Data Array was empty. |
Constructor | Type of Object |
---|---|
No Data enumerated. The Data Array was empty. |
Constructor | Type of Object |
---|---|
No Data enumerated. The Data Array was empty. |
Constructor | Type of Object |
---|---|
[new Comment][0]['ownerDocument'] | Document |
[new DocumentFragment][0]['ownerDocument'] | Document |
[new Range][0]['startContainer'] | Document |
[new Range][0]['endContainer'] | Document |
[new Range][0]['commonAncestorContainer'] | Document |
[new Text][0]['ownerDocument'] | Document |
function test(data){
// data is the input variable that is supplied from the Enumeration List.
// For this module, we don't process the input data.
addResult(data, (eval(data) instanceof Document)?'Document': 'Node/Window');
}
var data = [];
// List all constructor that doesn't need params
var i, d=[], foo = Object.getOwnPropertyNames(window), c;
for (i in foo) {
try {
c = window[foo[i]];
if (c.prototype && c === c.prototype.constructor) {
try {
new c;
d.push(foo[i]);
} catch (e){}
}
} catch(e){}
}
// Check every new object for params that refer to document or window
var j, e;
for (i in d) {
try{
c = new window[d[i]];
for (j in c) {
e = c[j];
console.log(e instanceof Node);
if (e instanceof Node || e instanceof window.constructor) {
data.push("[new "+d[i]+"][0]['"+j+"']");
}
}
}catch(e){ console.log(e);}
}
console.log(data);