Getters & Setters for Element.prototype

Things like innerHTML, outerHTML etc.

By
skeptic_fx 1 Seen 566 times
Tags
sinks gettters setters
Run this test now.

Results


Tested on
Chrome - 65 - Mac OS X
Property NameGetter?Setter?
namespaceURItruefalse
prefixtruefalse
localNametruefalse
tagNametruefalse
idtruetrue
classNametruetrue
classListtruetrue
slottruetrue
attributestruefalse
shadowRoottruefalse
assignedSlottruefalse
innerHTMLtruetrue
outerHTMLtruetrue
scrollToptruetrue
scrollLefttruetrue
scrollWidthtruefalse
scrollHeighttruefalse
clientToptruefalse
clientLefttruefalse
clientWidthtruefalse
clientHeighttruefalse
onbeforecopytruetrue
onbeforecuttruetrue
onbeforepastetruetrue
oncopytruetrue
oncuttruetrue
onpastetruetrue
onsearchtruetrue
onselectstarttruetrue
previousElementSiblingtruefalse
nextElementSiblingtruefalse
childrentruefalse
firstElementChildtruefalse
lastElementChildtruefalse
childElementCounttruefalse
onwebkitfullscreenchangetruetrue
onwebkitfullscreenerrortruetrue
setPointerCapturefalsefalse
releasePointerCapturefalsefalse
hasPointerCapturefalsefalse
hasAttributesfalsefalse
getAttributeNamesfalsefalse
getAttributefalsefalse
getAttributeNSfalsefalse
setAttributefalsefalse
setAttributeNSfalsefalse
removeAttributefalsefalse
removeAttributeNSfalsefalse
hasAttributefalsefalse
hasAttributeNSfalsefalse
getAttributeNodefalsefalse
getAttributeNodeNSfalsefalse
setAttributeNodefalsefalse
setAttributeNodeNSfalsefalse
removeAttributeNodefalsefalse
closestfalsefalse
matchesfalsefalse
webkitMatchesSelectorfalsefalse
attachShadowfalsefalse
getElementsByTagNamefalsefalse
getElementsByTagNameNSfalsefalse
getElementsByClassNamefalsefalse
insertAdjacentElementfalsefalse
insertAdjacentTextfalsefalse
insertAdjacentHTMLfalsefalse
requestPointerLockfalsefalse
getClientRectsfalsefalse
getBoundingClientRectfalsefalse
scrollIntoViewfalsefalse
scrollIntoViewIfNeededfalsefalse
animatefalsefalse
beforefalsefalse
afterfalsefalse
replaceWithfalsefalse
removefalsefalse
prependfalsefalse
appendfalsefalse
querySelectorfalsefalse
querySelectorAllfalsefalse
webkitRequestFullScreenfalsefalse
webkitRequestFullscreenfalsefalse
scrollfalsefalse
scrollTofalsefalse
scrollByfalsefalse
createShadowRootfalsefalse
getDestinationInsertionPointsfalsefalse
constructorfalsefalse

Tested on
Firefox - 39 - Windows 7
Property NameGetter?Setter?
getAttributefalsefalse
getAttributeNSfalsefalse
setAttributefalsefalse
setAttributeNSfalsefalse
removeAttributefalsefalse
removeAttributeNSfalsefalse
hasAttributefalsefalse
hasAttributeNSfalsefalse
hasAttributesfalsefalse
closestfalsefalse
matchesfalsefalse
getElementsByTagNamefalsefalse
getElementsByTagNameNSfalsefalse
getElementsByClassNamefalsefalse
mozMatchesSelectorfalsefalse
setCapturefalsefalse
releaseCapturefalsefalse
mozRequestFullScreenfalsefalse
mozRequestPointerLockfalsefalse
getAttributeNodefalsefalse
setAttributeNodefalsefalse
removeAttributeNodefalsefalse
getAttributeNodeNSfalsefalse
setAttributeNodeNSfalsefalse
getClientRectsfalsefalse
getBoundingClientRectfalsefalse
scrollIntoViewfalsefalse
scrollfalsefalse
scrollTofalsefalse
scrollByfalsefalse
insertAdjacentHTMLfalsefalse
querySelectorfalsefalse
querySelectorAllfalsefalse
removefalsefalse
tagNametruefalse
idtruetrue
classNametruetrue
classListtruefalse
attributestruefalse
onwheeltruetrue
scrollToptruetrue
scrollLefttruetrue
scrollWidthtruefalse
scrollHeighttruefalse
clientToptruefalse
clientLefttruefalse
clientWidthtruefalse
clientHeighttruefalse
scrollTopMaxtruefalse
scrollLeftMaxtruefalse
innerHTMLtruetrue
outerHTMLtruetrue
previousElementSiblingtruefalse
nextElementSiblingtruefalse
childrentruefalse
firstElementChildtruefalse
lastElementChildtruefalse
childElementCounttruefalse
constructorfalsefalse

Tested on
Googlebot - 2.1 - undefined
Property NameGetter?Setter?
innerHTMLtruetrue
outerHTMLtruetrue
getAttributefalsefalse
setAttributefalsefalse
removeAttributefalsefalse
getAttributeNodefalsefalse
setAttributeNodefalsefalse
removeAttributeNodefalsefalse
getElementsByTagNamefalsefalse
hasAttributesfalsefalse
getAttributeNSfalsefalse
setAttributeNSfalsefalse
removeAttributeNSfalsefalse
getElementsByTagNameNSfalsefalse
getAttributeNodeNSfalsefalse
setAttributeNodeNSfalsefalse
hasAttributefalsefalse
hasAttributeNSfalsefalse
matchesfalsefalse
closestfalsefalse
focusfalsefalse
blurfalsefalse
scrollIntoViewfalsefalse
scrollIntoViewIfNeededfalsefalse
getElementsByClassNamefalsefalse
insertAdjacentElementfalsefalse
insertAdjacentTextfalsefalse
insertAdjacentHTMLfalsefalse
webkitMatchesSelectorfalsefalse
createShadowRootfalsefalse
getDestinationInsertionPointsfalsefalse
getClientRectsfalsefalse
getBoundingClientRectfalsefalse
requestPointerLockfalsefalse
animatefalsefalse
removefalsefalse
webkitRequestFullScreenfalsefalse
webkitRequestFullscreenfalsefalse
querySelectorfalsefalse
querySelectorAllfalsefalse
constructorfalsefalse

Tested on
Pale Moon (Firefox Variant) - 26.1.1 - Windows
Property NameGetter?Setter?
getAttributefalsefalse
getAttributeNSfalsefalse
setAttributefalsefalse
setAttributeNSfalsefalse
removeAttributefalsefalse
removeAttributeNSfalsefalse
hasAttributefalsefalse
hasAttributeNSfalsefalse
matchesfalsefalse
getElementsByTagNamefalsefalse
getElementsByTagNameNSfalsefalse
getElementsByClassNamefalsefalse
mozMatchesSelectorfalsefalse
setCapturefalsefalse
releaseCapturefalsefalse
mozRequestFullScreenfalsefalse
mozRequestPointerLockfalsefalse
getAttributeNodefalsefalse
setAttributeNodefalsefalse
removeAttributeNodefalsefalse
getAttributeNodeNSfalsefalse
setAttributeNodeNSfalsefalse
getClientRectsfalsefalse
getBoundingClientRectfalsefalse
scrollIntoViewfalsefalse
insertAdjacentHTMLfalsefalse
querySelectorfalsefalse
querySelectorAllfalsefalse
removefalsefalse
tagNametruefalse
idtruetrue
classListtruefalse
attributestruefalse
childrentruefalse
firstElementChildtruefalse
lastElementChildtruefalse
previousElementSiblingtruefalse
nextElementSiblingtruefalse
childElementCounttruefalse
onmouseentertruetrue
onmouseleavetruetrue
onwheeltruetrue
scrollToptruetrue
scrollLefttruetrue
scrollWidthtruefalse
scrollHeighttruefalse
clientToptruefalse
clientLefttruefalse
clientWidthtruefalse
clientHeighttruefalse
scrollTopMaxtruefalse
scrollLeftMaxtruefalse
innerHTMLtruetrue
outerHTMLtruetrue
constructorfalsefalse

Tested on
Chrome Mobile - 41 - Android
Property NameGetter?Setter?
innerHTMLtruetrue
outerHTMLtruetrue
getAttributefalsefalse
setAttributefalsefalse
removeAttributefalsefalse
getAttributeNodefalsefalse
setAttributeNodefalsefalse
removeAttributeNodefalsefalse
getElementsByTagNamefalsefalse
hasAttributesfalsefalse
getAttributeNSfalsefalse
setAttributeNSfalsefalse
removeAttributeNSfalsefalse
getElementsByTagNameNSfalsefalse
getAttributeNodeNSfalsefalse
setAttributeNodeNSfalsefalse
hasAttributefalsefalse
hasAttributeNSfalsefalse
matchesfalsefalse
closestfalsefalse
focusfalsefalse
blurfalsefalse
scrollIntoViewfalsefalse
scrollIntoViewIfNeededfalsefalse
getElementsByClassNamefalsefalse
insertAdjacentElementfalsefalse
insertAdjacentTextfalsefalse
insertAdjacentHTMLfalsefalse
webkitMatchesSelectorfalsefalse
createShadowRootfalsefalse
getDestinationInsertionPointsfalsefalse
getClientRectsfalsefalse
getBoundingClientRectfalsefalse
requestPointerLockfalsefalse
animatefalsefalse
removefalsefalse
webkitRequestFullScreenfalsefalse
webkitRequestFullscreenfalsefalse
querySelectorfalsefalse
querySelectorAllfalsefalse
constructorfalsefalse

Tested on
Mobile Safari - 9 - iOS
Property NameGetter?Setter?
constructorfalsefalse
tagNamefalsefalse
attributesfalsefalse
stylefalsefalse
idfalsefalse
offsetLeftfalsefalse
offsetTopfalsefalse
offsetWidthfalsefalse
offsetHeightfalsefalse
clientLeftfalsefalse
clientTopfalsefalse
clientWidthfalsefalse
clientHeightfalsefalse
scrollLeftfalsefalse
scrollTopfalsefalse
scrollWidthfalsefalse
scrollHeightfalsefalse
offsetParentfalsefalse
innerHTMLfalsefalse
outerHTMLfalsefalse
classNamefalsefalse
classListfalsefalse
datasetfalsefalse
webkitRegionOversetfalsefalse
onbeforecopyfalsefalse
onbeforecutfalsefalse
onbeforepastefalsefalse
oncopyfalsefalse
oncutfalsefalse
onpastefalsefalse
onselectstartfalsefalse
onanimationendfalsefalse
onanimationiterationfalsefalse
onanimationstartfalsefalse
ontransitionendfalsefalse
onwebkitanimationendfalsefalse
onwebkitanimationiterationfalsefalse
onwebkitanimationstartfalsefalse
onwebkittransitionendfalsefalse
ongesturechangefalsefalse
ongestureendfalsefalse
ongesturestartfalsefalse
onfocusinfalsefalse
onfocusoutfalsefalse
onbeforeloadfalsefalse
onwebkitpresentationmodechangedfalsefalse
onwebkitcurrentplaybacktargetiswirelesschangedfalsefalse
onwebkitplaybacktargetavailabilitychangedfalsefalse
onabortfalsefalse
onblurfalsefalse
oncanplayfalsefalse
oncanplaythroughfalsefalse
onchangefalsefalse
onclickfalsefalse
oncontextmenufalsefalse
ondblclickfalsefalse
ondragfalsefalse
ondragendfalsefalse
ondragenterfalsefalse
ondragleavefalsefalse
ondragoverfalsefalse
ondragstartfalsefalse
ondropfalsefalse
ondurationchangefalsefalse
onemptiedfalsefalse
onendedfalsefalse
onerrorfalsefalse
onfocusfalsefalse
oninputfalsefalse
oninvalidfalsefalse
onkeydownfalsefalse
onkeypressfalsefalse
onkeyupfalsefalse
onloadfalsefalse
onloadeddatafalsefalse
onloadedmetadatafalsefalse
onloadstartfalsefalse
onmousedownfalsefalse
onmouseenterfalsefalse
onmouseleavefalsefalse
onmousemovefalsefalse
onmouseoutfalsefalse
onmouseoverfalsefalse
onmouseupfalsefalse
onmousewheelfalsefalse
onpausefalsefalse
onplayfalsefalse
onplayingfalsefalse
onprogressfalsefalse
onratechangefalsefalse
onresetfalsefalse
onscrollfalsefalse
onseekedfalsefalse
onseekingfalsefalse
onselectfalsefalse
onstalledfalsefalse
onsubmitfalsefalse
onsuspendfalsefalse
ontimeupdatefalsefalse
onvolumechangefalsefalse
onwaitingfalsefalse
onsearchfalsefalse
onwheelfalsefalse
ontouchcancelfalsefalse
ontouchendfalsefalse
ontouchmovefalsefalse
ontouchstartfalsefalse
onwebkitmouseforcechangedfalsefalse
onwebkitmouseforcedownfalsefalse
onwebkitmouseforcewillbeginfalsefalse
onwebkitmouseforceupfalsefalse
previousElementSiblingfalsefalse
nextElementSiblingfalsefalse
childrenfalsefalse
firstElementChildfalsefalse
lastElementChildfalsefalse
childElementCountfalsefalse
getAttributefalsefalse
setAttributefalsefalse
removeAttributefalsefalse
getAttributeNodefalsefalse
setAttributeNodefalsefalse
removeAttributeNodefalsefalse
getElementsByTagNamefalsefalse
hasAttributesfalsefalse
getAttributeNSfalsefalse
setAttributeNSfalsefalse
removeAttributeNSfalsefalse
getElementsByTagNameNSfalsefalse
getAttributeNodeNSfalsefalse
setAttributeNodeNSfalsefalse
hasAttributefalsefalse
hasAttributeNSfalsefalse
focusfalsefalse
blurfalsefalse
scrollIntoViewfalsefalse
scrollIntoViewIfNeededfalsefalse
scrollByLinesfalsefalse
scrollByPagesfalsefalse
getElementsByClassNamefalsefalse
matchesfalsefalse
closestfalsefalse
webkitMatchesSelectorfalsefalse
getClientRectsfalsefalse
getBoundingClientRectfalsefalse
webkitGetRegionFlowRangesfalsefalse
removefalsefalse
querySelectorfalsefalse
querySelectorAllfalsefalse

User Script (ENUM_FUNCTION)

					
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.
    var getter = Element.prototype.__lookupGetter__(data) !== undefined;
    var setter = Element.prototype.__lookupSetter__(data) !== undefined;
    if(getter === true && setter === true) addSuccess(data, getter, setter);
    if(getter === false && setter === false) addError(data, getter, setter);
    if(getter !== setter) addInfo(data, getter, setter);

}


					
				

Enum Data (ENUM_FUNCTION)

					
var data = Object.getOwnPropertyNames(Element.prototype);