Skip to content

[WIP] refactor(security): implement closed shadow DOM for postcode lookup t…#571

Open
mfilip wants to merge 1 commit into
mainfrom
shadow
Open

[WIP] refactor(security): implement closed shadow DOM for postcode lookup t…#571
mfilip wants to merge 1 commit into
mainfrom
shadow

Conversation

@mfilip

@mfilip mfilip commented Feb 23, 2026

Copy link
Copy Markdown
Member

…o prevent external JavaScript access

@mfilip mfilip requested a review from cblanc February 23, 2026 11:27
@mfilip mfilip force-pushed the shadow branch 2 times, most recently from 9b6e00a to f3b30b0 Compare May 29, 2026 08:23
Implement closed shadow DOM to prevent external JavaScript from accessing
or manipulating postcode lookup form elements. This enhances security by
isolating the address search UI from third-party scripts.

Changes:
- Migrate test suite from Cypress to Playwright with shadow DOM support
- Update CI workflows to use Playwright for e2e and snapshot tests
- Upgrade Node.js to v24 across all CI workflows
- Add shadow DOM test utilities for Playwright

BREAKING CHANGE: The postcode lookup widget now uses a closed shadow DOM.
External JavaScript can no longer directly access elements like .idpc-input,
.idpc-button, or .idpc-select. Custom integrations that relied on direct DOM
queries will need to use the extension's configuration options instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant