Skip to content

feat: pattern= couldn't use \p{...}, and :blank and :defined never matched - #90

Merged
jamesconwaydev merged 1 commit into
mainfrom
sync-pattern-blank
Nov 19, 2026
Merged

jamesconwaydev merged 1 commit into
mainfrom
sync-pattern-blank

Conversation

@jamesconwaydev

Copy link
Copy Markdown
Collaborator

Problem

Change

Syncs Netweir 8c6f3bc:

Also: NOTICE credits the Unicode Character Database, and README and ROADMAP mark both done.

Closes #72
Closes #13

Tests

  • cargo test --workspace: 156 test groups, 0 failed. html5lib tokenizer 7,045 and tree construction 3,898 passed, 0 failed.
  • The synced tests check the property sets against test262's generated files for Unicode 17.0 (every set matched in a one-off run over all 441 files), 61 patterns that must not compile, and the :blank/:defined cases.

…tched

Syncs Netweir 8c6f3bc, which brings two changes:

- netweir/netweir#327: Unicode property escapes in the pattern engine,
  with Unicode 17.0 tables generated by scripts/gen-unicode.py: every
  General_Category, Script and Script_Extensions value and the binary
  properties ECMAScript lists. A name field with pattern="\p{L}+"
  is :invalid now when it should be.
- netweir/netweir#328, by foothillsdigital: :blank as the current
  Selectors draft defines it, and :defined for custom element names.

NOTICE credits the Unicode Character Database.
@jamesconwaydev
jamesconwaydev enabled auto-merge (squash) November 19, 2026 04:15
@jamesconwaydev
jamesconwaydev merged commit 0721eab into main Nov 19, 2026
32 checks passed
@jamesconwaydev
jamesconwaydev deleted the sync-pattern-blank branch November 19, 2026 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pattern can't use \p{...}, so those inputs are never :invalid Match :blank and :defined

1 participant