Repository navigation
Conversation
This branch has not been deployed
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.
Summary
Add
include_form_values=Truefor HTML documents that contain authored form data. Materialize form labels, textual input values, textarea content and selected option labels before either HTML parser reads the document. The default continues to exclude form controls.Single selects use their selected label (or first eligible default), while multiple selects include selected labels only. Hidden forms and controls, password/file/action values, placeholder prompts and script-updated state are excluded. Values are serialized as text, preserving document order without treating value contents as markup.
The intentional default exclusion of form content from #3247 remains unchanged; this option is for callers explicitly extracting authored values from saved forms.
Validation
Tests cover both parser versions, default behavior, textual controls, selected/default/multiple options, disabled groups, hidden/password controls and literal markup. Fifteen new regressions fail on main. All 175 new and existing HTML partition tests pass, and whole-repository Ruff 0.15.10 lint and format checks pass. Parser-specific whitespace formatting remains with each parser. Full repository tests remain pending, so this is a draft.