Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

:nth-child(expr) is parsed as CSSSelectorSimpleMember #89

Closed

Description

@Lesny

Selectors such as:

  • :nth-child(2)
  • :nth-child(2n+7)
  • :nth-child(odd)

Are all parsed to CSSSelectorSimpleMember with value :nth-child(odd)
instead of CSSSelectorMemberFunctionLike with functionName :nth-child( and
parameterExpression odd / 2/2n+7 etc.

I am not sure if these are supposed to be part of public API, if not, then it may not be a bug. I am writing CSS interpreter, and in this context it is problematic.

Activity

  1. self-assigned this
    on Nov 2, 2022
  2. stale commented on Jan 7, 2024

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  3. added a commit that references this issue on Nov 3, 2026
  4. phax commented on Nov 3, 2026

    @phax
    Owner

    Part of 8.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions