The image needs to be injected/adopted into the DOM to use document methods.
You can access Element attributes outside of the DOM (like src). -- Sandy
The image needs to be injected/adopted into the DOM to use document methods.
You can access Element attributes outside of the DOM (like src). -- Sandy