Skip to content

[cssom] U+0000 does not need to be replaced when serializing an identifier #8074

@cdoublev

Description

@cdoublev

I think that U+0000 does not need to be replaced in serialize an identifier.

To serialize an identifier means to create a string represented by the concatenation of, for each character of the identifier:

  • If the character is NULL (U+0000), then the REPLACEMENT CHARACTER (U+FFFD).
  • [...]

The examples below the definition of CSS.escape() use it in document.querySelector() but this method parses its input with parse a selector, which leads to replacing U+0000 with U+FFFD in filter code points.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Closed as Question AnsweredUsed when the issue is more of a question than a problem, and it's been answered.cssom-1Current Work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions