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.
This commit is contained in:
Calixte Denizet 2021-10-06 20:50:33 +02:00
parent da8df646f5
commit f384ad2356

View File

@ -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(""));
}