Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support dynamic charset change on meta tags in HtmlRewriter. #162

Merged
merged 1 commit into from
Mar 19, 2023

Conversation

orium
Copy link
Member

@orium orium commented Mar 14, 2023

No description provided.

@orium orium force-pushed the charset-meta-tag branch from 5f81b34 to c0cfb1f Compare March 15, 2023 17:56
@orium orium changed the title [WIP] Support dynamic charset change on meta tags in HtmlRewriter. Support dynamic charset change on meta tags in HtmlRewriter. Mar 15, 2023
@orium orium marked this pull request as ready for review March 15, 2023 17:56
@orium orium requested review from a team, Noah-Kennedy and scotchmist as code owners March 15, 2023 17:56
@orium orium force-pushed the charset-meta-tag branch 3 times, most recently from 2dc0790 to 175043c Compare March 15, 2023 18:14
use std::rc::Rc;
use thiserror::Error;

pub use self::settings::*;

#[derive(Clone)]
pub struct SharedEncoding {
Copy link
Contributor

Choose a reason for hiding this comment

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

Move to base dir

Copy link
Member Author

Choose a reason for hiding this comment

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

Done. Does it make sense to also move AsciiCompatibleEncoding to base/encoding.rs? We would export it in a different place so it is a breaking change...

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually, SharedEncoding is not exported. It is only used internally. Do you still want to have it in the base module?

src/rewriter/mod.rs Outdated Show resolved Hide resolved
src/rewriter/mod.rs Outdated Show resolved Hide resolved
src/rewriter/mod.rs Outdated Show resolved Hide resolved
src/rewriter/mod.rs Show resolved Hide resolved
src/rewriter/mod.rs Show resolved Hide resolved
tests/fixtures/token_capturing.rs Show resolved Hide resolved
@orium orium force-pushed the charset-meta-tag branch from 175043c to c262135 Compare March 17, 2023 11:23
@orium orium force-pushed the charset-meta-tag branch from c262135 to 5d33823 Compare March 19, 2023 18:41
@orium orium requested a review from jongiddy as a code owner March 19, 2023 18:41
@inikulin inikulin merged commit f7d02b2 into cloudflare:master Mar 19, 2023
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.

2 participants