Skip to content

Tokenizer creates Doctype with empty string name; possibly should be null; breaks tests. #99

Open
@1619digital

Description

@1619digital

When the tokenizer matches a doctype token, it creates a current token with a name "" (empty string) - the publicId, systemId are set to None. This happens in method markupDeclarationOpenState.

I'm not sure there's any reason for this, but it breaks all the tests, which expect a nameless Doctype to have a null name.

Most, but not all, of the relevant tests are in file test3.test in the tokenizer test directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions