Skip to content

Replace SwiftSoup with regex-based attribute lookup in Readium CSS injection#742

Draft
mickael-menu wants to merge 2 commits intodevelopfrom
fix/swiftsoup-readiumcss
Draft

Replace SwiftSoup with regex-based attribute lookup in Readium CSS injection#742
mickael-menu wants to merge 2 commits intodevelopfrom
fix/swiftsoup-readiumcss

Conversation

@mickael-menu
Copy link
Member

The Readium CSS injection pipeline previously used SwiftSoup to parse the full HTML document just to read lang/xml:lang attributes on <html> and <body>. This replaces that with lightweight regex lookups on the raw HTML string, using the existing HTMLElement infrastructure.

Copilot AI review requested due to automatic review settings March 5, 2026 17:06
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@stevenzeck
Copy link
Contributor

I know it has nothing to do with this PR, but could you change the carthage project in the Makefile? find . -name ".DS_Store" -delete.

@mickael-menu mickael-menu marked this pull request as draft March 5, 2026 21:09
@mickael-menu
Copy link
Member Author

I won't merge this PR quickly, I want to do more regression testing on it.

But we can open a PR with just this change in the Makefile.

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.

3 participants