It's important to not pass frame to transform when using transformWithFrame. Instead we need to pass either frame.contentDocument or frame.contentDocument.documentElement
It's important to not pass frame to transform when using transformWithFrame. Instead we need to pass either frame.contentDocument or frame.contentDocument.documentElement