From f384ad2356f162b75e911db352e9564d715f5332 Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Wed, 6 Oct 2021 20:50:33 +0200 Subject: [PATCH] Empty name is allowed in ISO 32000 - the exact sentence from the spec: "The token SOLIDUS (a slash followed by no regular characters) introduces a unique valid name defined by the empty sequence of characters." - so just remove the warning. --- src/core/parser.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/core/parser.js b/src/core/parser.js index 516aba63b..ad5f958e0 100644 --- a/src/core/parser.js +++ b/src/core/parser.js @@ -1116,8 +1116,6 @@ class Lexer { } if (strBuf.length > 127) { warn(`Name token is longer than allowed by the spec: ${strBuf.length}`); - } else if (strBuf.length === 0) { - warn("Name token is empty."); } return Name.get(strBuf.join("")); }