Parser-created script elements:

Already containing text: PASS

Already specifying missing source: PASS

Already specifying valid source: FAIL

No text and no source: FAIL

Using setAttribute: FAIL


Dynamically-inserted script elements:

Set before insertion: FAIL

Set after insertion: FAIL

Set twice before and once after insertion: FAIL