Skip to content

Commit 8292921

Browse files
aslushnikovmarijnh
authored andcommitted
Support upper-case SCRIPT tags in htmlmixed mode
1 parent 081ba77 commit 8292921

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mode/htmlmixed/htmlmixed.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ CodeMirror.defineMode("htmlmixed", function(config, parserConfig) {
3030

3131
function html(stream, state) {
3232
var tagName = state.htmlState.tagName;
33+
if (tagName) tagName = tagName.toLowerCase();
3334
var style = htmlMode.token(stream, state.htmlState);
3435
if (tagName == "script" && /\btag\b/.test(style) && stream.current() == ">") {
3536
// Script block: mode to change to depends on type attribute

0 commit comments

Comments
 (0)