diff --git a/src/compiler/parser/html-parser.js b/src/compiler/parser/html-parser.js index e75ed76539d..dbc59146331 100644 --- a/src/compiler/parser/html-parser.js +++ b/src/compiler/parser/html-parser.js @@ -22,7 +22,7 @@ const startTagOpen = new RegExp(`^<${qnameCapture}`) const startTagClose = /^\s*(\/?)>/ const endTag = new RegExp(`^<\\/${qnameCapture}[^>]*>`) const doctype = /^]+>/i -// #7298: escape - to avoid being pased as HTML comment when inlined in page +// #7298: escape - to avoid being passed as HTML comment when inlined in page const comment = /^): Object { if (typeof key === 'string' && key) { baseObj[values[i]] = values[i + 1] } else if (process.env.NODE_ENV !== 'production' && key !== '' && key !== null) { - // null is a speical value for explicitly removing a binding + // null is a special value for explicitly removing a binding warn( `Invalid value for dynamic directive argument (expected string or null): ${key}`, this