Repository navigation
script: Improve handling of DOMString in <form> escaped values - #44954
Merged
Merged
Conversation
Signed-off-by: Euclid Ye <[email protected]>
yezhizhen
marked this pull request as draft
May 16, 2026 10:39
Signed-off-by: Euclid Ye <[email protected]>
yezhizhen
force-pushed
the
thanks-for-review
branch
from
May 16, 2026 10:44
e9367e2 to
3695567
Compare
yezhizhen
marked this pull request as ready for review
May 16, 2026 10:45
TimvdLippe
approved these changes
May 16, 2026
TimvdLippe
left a comment
Contributor
There was a problem hiding this comment.
Nice! I will update the title to make it a bit more concise and readable. Such details are better left for the PR description
<form>; Remove redundant special casing for <input type="hidden">; Move normalize_crlf to impl DOMString<form> escaped values
pull Bot
pushed a commit
to AKJUS/servo
that referenced
this pull request
May 16, 2026
This has never been easier thanks to refactor servo#44954 earlier. Testing: Passing in existing tests. Part of servo#10778. --------- Signed-off-by: Euclid Ye <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sorry for the messy title. But there are quite a few things going on.
There was a redundant special casing in
fn replace_value. It was already done inservo/components/script/dom/html/input_element/mod.rs
Lines 1655 to 1657 in 0d283f6
It is important to remove it, to make
fn replace_valuereturn&DOMStringwithout cloning and String conversion.Move
normalize_crlftoimpl DOMStringTesting: Try. This is refactor + removing redundant code.
Part of #10778
Addresses #44953 (comment)