diff --git a/src/core/parser.js b/src/core/parser.js index d68fb5f926471..3fc9034f75810 100644 --- a/src/core/parser.js +++ b/src/core/parser.js @@ -838,9 +838,8 @@ var Lexer = (function LexerClosure() { strBuf.push(String.fromCharCode(ch)); } } - if (strBuf.length > 128) { - error('Warning: name token is longer than allowed by the spec: ' + - strBuf.length); + if (strBuf.length > 127) { + warn('name token is longer than allowed by the spec: ' + strBuf.length); } return Name.get(strBuf.join('')); },