mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1214663 - Make CodeMirror not break when encountering a <constructor> tag;r=Gijs
--HG-- extra : commitid : 5eSuUmwUSK6
This commit is contained in:
parent
cd1103e7d0
commit
5f553b202c
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user