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

--HG--
extra : commitid : 5eSuUmwUSK6
This commit is contained in:
Brian Grinstead 2015-10-14 11:29:19 -07:00
parent cd1103e7d0
commit 5f553b202c

View File

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