Browse Source

Merge pull request #6193 from Rob--W/long-name-is-warning-not-error

Issue a warning instead of an error for long Names
Tim van der Meij 10 years ago
parent
commit
6c1906fd53
  1. 5
      src/core/parser.js

5
src/core/parser.js

@ -838,9 +838,8 @@ var Lexer = (function LexerClosure() {
strBuf.push(String.fromCharCode(ch)); strBuf.push(String.fromCharCode(ch));
} }
} }
if (strBuf.length > 128) { if (strBuf.length > 127) {
error('Warning: name token is longer than allowed by the spec: ' + warn('name token is longer than allowed by the spec: ' + strBuf.length);
strBuf.length);
} }
return Name.get(strBuf.join('')); return Name.get(strBuf.join(''));
}, },

Loading…
Cancel
Save