Skip to content

Match namespace-qualified CSS attribute selectors #519

Closed

Description

@wieslawsoltes

Problem

Namespace-qualified attribute selectors such as [svg|href], [*|href], and [|href] need namespace-aware parsing, retained identity, and matching. The type/universal namespace slice deliberately does not claim this surface.

Scope

  • Carry attribute namespace constraints through Servo FFI and native compiled compounds.
  • Match namespace URI plus local name with correct any/empty namespace semantics.
  • Cover case flags, presence/value operators, unknown prefixes, dynamic CSSOM mutation, adopted sheets, cache identity, and invalidation.
  • Add browser-referenced WPT/native contracts plus bounded selector-cache and lifecycle gates.

Parent: #239. Depends on the type/universal namespace selector slice.

Status

Planned after the current type/universal namespace implementation. No implementation or validation is claimed.

Current status — 19 September 2026

Implementation is active in an isolated worktree from WebScene 276d5b77737927a4bd67bfeb523b8a515a7b115f. The focused slice owns namespaced attribute parsing/matching, cache identity, dynamic owner/adopted publication, and authored native/WPT/performance/lifecycle regressions. #520 remains ordered behind this work to avoid selector-pipeline collisions. No branch has been pushed and no PR exists at this checkpoint. Per the current implementation-first direction, only git diff --check will run locally; execution and Release gates remain deferred.

Activity

  1. added
    vscode-oss/planned
    on Sep 19, 2026
  2. wieslawsoltes commented on Sep 19, 2026

    @wieslawsoltes
    CollaboratorAuthor

    Completed by #525 and merged to WebScene main as 346f1412432f582ee8fd80942975075f031b06c5. Namespace-qualified attribute identity now crosses Servo parsing/FFI, caches, native matching/invalidation, HTML parsing, and namespace-aware DOM mutation. Only git diff --check ran; #520 owns nested functional-selector namespace context.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    vscode-oss/planned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions