Skip to content

Commit 6b2c9ba

Browse files
committed
Add note about not parsing MIME types for JS script tags
1 parent 402ae9f commit 6b2c9ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/wp-includes/html-api/class-wp-html-tag-processor.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3895,6 +3895,9 @@ static function ( $tag_match ) {
38953895
/**
38963896
* Indicates if the currently matched tag is a JavaScript script tag.
38973897
*
3898+
* Note that this does not parse a MIME type. This behavior is well-documented in
3899+
* in the HTML standard and uses string comparisons, *not* actual MIME Types.
3900+
*
38983901
* @see https://html.spec.whatwg.org/multipage/scripting.html#prepare-the-script-element
38993902
*
39003903
* @ignore

0 commit comments

Comments
 (0)