Skip to content

Commit 316fb32

Browse files
committed
Fix and improve tag processor comments
1 parent 772d771 commit 316fb32

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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
@@ -3972,7 +3972,7 @@ public function is_javascript_script_tag(): bool {
39723972
*
39733973
* > A string is a JavaScript MIME type essence match if it is an ASCII case-insensitive
39743974
* > match for one of the JavaScript MIME type essence strings.
3975-
3975+
*
39763976
* > A JavaScript MIME type is any MIME type whose essence is one of the following:
39773977
* >
39783978
* > - application/ecmascript
@@ -3992,8 +3992,8 @@ public function is_javascript_script_tag(): bool {
39923992
* > - text/x-ecmascript
39933993
* > - text/x-javascript
39943994
*
3995-
* @see https://mimesniff.spec.whatwg.org/#javascript-mime-type
39963995
* @see https://mimesniff.spec.whatwg.org/#javascript-mime-type-essence-match
3996+
* @see https://mimesniff.spec.whatwg.org/#javascript-mime-type
39973997
*/
39983998
switch ( strtolower( $type_string ) ) {
39993999
case 'application/ecmascript':
@@ -4015,11 +4015,11 @@ public function is_javascript_script_tag(): bool {
40154015
return true;
40164016

40174017
/*
4018-
* > Otherwise, if the script block's type string is an ASCII case-insensitive match for
4019-
* > the string "module", then set el's type to "module".
4020-
*
4021-
* A module is evaluated as JavaScript
4022-
*/
4018+
* > Otherwise, if the script block's type string is an ASCII case-insensitive match for
4019+
* > the string "module", then set el's type to "module".
4020+
*
4021+
* A module is evaluated as JavaScript.
4022+
*/
40234023
case 'module':
40244024
return true;
40254025
}

0 commit comments

Comments
 (0)