I noticed my data-cover-testReadyCallback attribute option was not being detected because when the following line is evaluated, the es.nodeName is lowercase data-cover-testreadycallback
if (es.nodeName === "data-cover-testReadyCallback"){
It may be a good idea to perform a case-insensitive check.
I noticed my
data-cover-testReadyCallback
attribute option was not being detected because when the following line is evaluated, thees.nodeName
is lowercasedata-cover-testreadycallback
if (es.nodeName === "data-cover-testReadyCallback"){
It may be a good idea to perform a case-insensitive check.