{"version":"2.1.234","anchor":"script-only-html-detection-rewritten","canonical_anchor":"script-only-html-detection-rewritten","heading":"Script-only HTML detection rewritten","tier":"internal","area":"Artifacts","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.234\/e\/script-only-html-detection-rewritten","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.234","markdown":"### Script-only HTML detection rewritten\n\nThe check for script-only artifact HTML now parses markup properly instead of string-matching.\n\n**What**\n\nThe check for whether a piece of artifact HTML is nothing but `<script>` blocks now parses attributes and quoting properly instead of searching for a literal closing tag, and refuses input that mixes comments with script tags.\n\n**Details**\n\n- The media-type parser was switched to the same dedicated whitespace trimmer.\n\n**Evidence**\n\n`<script>`\n\n- Area: Artifacts\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5"}