Zeile 30 | Zeile 30 |
---|
function html(stream, state) { var tagName = state.htmlState.tagName;
|
function html(stream, state) { var tagName = state.htmlState.tagName;
|
| if (tagName) tagName = tagName.toLowerCase();
|
var style = htmlMode.token(stream, state.htmlState); if (tagName == "script" && /\btag\b/.test(style) && stream.current() == ">") { // Script block: mode to change to depends on type attribute
| var style = htmlMode.token(stream, state.htmlState); if (tagName == "script" && /\btag\b/.test(style) && stream.current() == ">") { // Script block: mode to change to depends on type attribute
|
Zeile 68 | Zeile 69 |
---|
if (stream.match(/^<\/\s*script\s*>/i, false)) { state.token = html; state.localState = state.localMode = null;
|
if (stream.match(/^<\/\s*script\s*>/i, false)) { state.token = html; state.localState = state.localMode = null;
|
return html(stream, state);
| return null;
|
} return maybeBackup(stream, /<\/\s*script\s*>/, state.localMode.token(stream, state.localState));
| } return maybeBackup(stream, /<\/\s*script\s*>/, state.localMode.token(stream, state.localState));
|
Zeile 77 | Zeile 78 |
---|
if (stream.match(/^<\/\s*style\s*>/i, false)) { state.token = html; state.localState = state.localMode = null;
|
if (stream.match(/^<\/\s*style\s*>/i, false)) { state.token = html; state.localState = state.localMode = null;
|
return html(stream, state);
| return null;
|
} return maybeBackup(stream, /<\/\s*style\s*>/, cssMode.token(stream, state.localState));
| } return maybeBackup(stream, /<\/\s*style\s*>/, cssMode.token(stream, state.localState));
|