You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that the case of the "type" attribute name affects the type of escaping applied to the body of the script element. This goes against the HTML spec, which says that attribute names are case-insensitive.
The source of this bug is in html/template's state machine (see here), where the attribute name found in the template is compared with the string literal "type" without first converting the attribute name to lowercase. However, when the attribute name is used to determine the attribute type, it is converted to lower case.
The text was updated successfully, but these errors were encountered:
The following html/template template:
produces the output
Note that the case of the "type" attribute name affects the type of escaping applied to the body of the script element. This goes against the HTML spec, which says that attribute names are case-insensitive.
The source of this bug is in html/template's state machine (see here), where the attribute name found in the template is compared with the string literal "type" without first converting the attribute name to lowercase. However, when the attribute name is used to determine the attribute type, it is converted to lower case.
The text was updated successfully, but these errors were encountered: