Skip to content

Commit ed22488

Browse files
committed
Fix and improve tag processor comments
1 parent 092eecf commit ed22488

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3882,7 +3882,7 @@ public function is_javascript_script_tag(): bool {
38823882
*
38833883
* > A string is a JavaScript MIME type essence match if it is an ASCII case-insensitive
38843884
* > match for one of the JavaScript MIME type essence strings.
3885-
3885+
*
38863886
* > A JavaScript MIME type is any MIME type whose essence is one of the following:
38873887
* >
38883888
* > - application/ecmascript
@@ -3902,8 +3902,8 @@ public function is_javascript_script_tag(): bool {
39023902
* > - text/x-ecmascript
39033903
* > - text/x-javascript
39043904
*
3905-
* @see https://mimesniff.spec.whatwg.org/#javascript-mime-type
39063905
* @see https://mimesniff.spec.whatwg.org/#javascript-mime-type-essence-match
3906+
* @see https://mimesniff.spec.whatwg.org/#javascript-mime-type
39073907
*/
39083908
switch ( strtolower( $type_string ) ) {
39093909
case 'application/ecmascript':
@@ -3925,11 +3925,11 @@ public function is_javascript_script_tag(): bool {
39253925
return true;
39263926

39273927
/*
3928-
* > Otherwise, if the script block's type string is an ASCII case-insensitive match for
3929-
* > the string "module", then set el's type to "module".
3930-
*
3931-
* A module is evaluated as JavaScript
3932-
*/
3928+
* > Otherwise, if the script block's type string is an ASCII case-insensitive match for
3929+
* > the string "module", then set el's type to "module".
3930+
*
3931+
* A module is evaluated as JavaScript.
3932+
*/
39333933
case 'module':
39343934
return true;
39353935
}

0 commit comments

Comments
 (0)