|
@@ -111,11 +111,11 @@ function parseChildren(
|
|
|
const s = context.source
|
|
const s = context.source
|
|
|
let node: TemplateChildNode | TemplateChildNode[] | undefined = undefined
|
|
let node: TemplateChildNode | TemplateChildNode[] | undefined = undefined
|
|
|
|
|
|
|
|
- if (mode === TextModes.DATA) {
|
|
|
|
|
|
|
+ if (mode === TextModes.DATA || mode === TextModes.RCDATA) {
|
|
|
if (!context.inPre && startsWith(s, context.options.delimiters[0])) {
|
|
if (!context.inPre && startsWith(s, context.options.delimiters[0])) {
|
|
|
// '{{'
|
|
// '{{'
|
|
|
node = parseInterpolation(context, mode)
|
|
node = parseInterpolation(context, mode)
|
|
|
- } else if (s[0] === '<') {
|
|
|
|
|
|
|
+ } else if (mode === TextModes.DATA && s[0] === '<') {
|
|
|
// https://html.spec.whatwg.org/multipage/parsing.html#tag-open-state
|
|
// https://html.spec.whatwg.org/multipage/parsing.html#tag-open-state
|
|
|
if (s.length === 1) {
|
|
if (s.length === 1) {
|
|
|
emitError(context, ErrorCodes.EOF_BEFORE_TAG_NAME, 1)
|
|
emitError(context, ErrorCodes.EOF_BEFORE_TAG_NAME, 1)
|