When I have the attribute with no value (<img elementtiming src="http://foo.bar/img.png" />), the observer is not fired. However, when I set a value, like "a" (<img elementtiming="a" src="http://foo.bar/img.png" />), the observer is fired.
This should work when no value is set for the attribute, as apps might not always want to filter by some value, and it adds additional bytes to have a value.
I tried this API in: Chrome 77.0.3865.90
When I have the attribute with no value (
<img elementtiming src="http://foo.bar/img.png" />
), the observer is not fired. However, when I set a value, like "a" (<img elementtiming="a" src="http://foo.bar/img.png" />
), the observer is fired.This should work when no value is set for the attribute, as apps might not always want to filter by some value, and it adds additional bytes to have a value.