Bug 1214663 - Make CodeMirror not break when encountering a <constructor> tag;r=Gijs

This commit is contained in:
Brian Grinstead 2015-10-14 11:29:19 -07:00
parent d38525139b
commit e70101a9c5

View File

@ -89,8 +89,8 @@
tags.script.unshift(["type", configScript[i].matches, configScript[i].mode])
function html(stream, state) {
var tagName = state.htmlState.tagName;
var tagInfo = tagName && tags[tagName.toLowerCase()];
var tagName = state.htmlState.tagName && state.htmlState.tagName.toLowerCase();
var tagInfo = tagName && tags.hasOwnProperty(tagName) && tags[tagName];
var style = htmlMode.token(stream, state.htmlState), modeSpec;