build(docs-infra): fix `StackblitzBuilder` after `jsdom` update (#41725)
build(docs-infra): fix `StackblitzBuilder` after `jsdom` update (#41725)

In commit c617f1f768bd968e95dd1147293a5a18df3bc770, `jsdom` was updated
from v9 to v16. This includes a breaking change that caused
`StackblitzBuilder` to fail to generate the StackBlitz examples.
However, this failure went unnoticed, because `StackblitzBuilder` still
completed successfully after failing to generate the examples. (This has
been fixed in the previous commit.)

This commit updates `StackblitzBuilder` to use the new `jsdom` API.

PR Close #41725

shairez/angular,brandonroberts/angular,brandonroberts/angular,gnomeontherun/angular,angular-indonesia/angular,mgechev/angular,ocombe/angular,angular/angular,ocombe/angular,gnomeontherun/angular,manekinekko/angular,angular/angular,manekinekko/angular,angular-indonesia/angular,manekinekko/angular,ocombe/angular,gnomeontherun/angular,gkalpak/angular,gkalpak/angular,manekinekko/angular,mgechev/angular,ocombe/angular,JiaLiPassion/angular,mgechev/angular,brandonroberts/angular,angular-indonesia/angular,brandonroberts/angular,gnomeontherun/angular,angular-indonesia/angular,ocombe/angular,manekinekko/angular,JiaLiPassion/angular,gkalpak/angular,brandonroberts/angular,shairez/angular,angular/angular,shairez/angular,JiaLiPassion/angular,brandonroberts/angular,manekinekko/angular,shairez/angular,angular/angular,JiaLiPassion/angular,mgechev/angular,ocombe/angular,shairez/angular,gkalpak/angular,mgechev/angular