Why does jQuery remove body and head tags when populating an iframe with a style tag but not without?

前端 未结 2 1267
后悔当初
后悔当初 2021-02-16 00:23

If I run the following code, the body and head tags are removed.