-
Notifications
You must be signed in to change notification settings - Fork 3.6k
HTML API: Ensure carriage returns are serialized in HTML #12466
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
Draft
sirreal
wants to merge
44
commits into
WordPress:trunk
Choose a base branch
from
sirreal:html-api-fuzz-fiz/decoded-cr
base: trunk
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+183
−7
Draft
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
cee0661
HTML API: Add tests for attribute value input preprocessing.
sirreal 82a26aa
HTML API: Apply input preprocessing in get_attribute().
sirreal 48d8fb4
HTML API: Add tests for class updates over preprocessed values.
sirreal d1f852c
HTML API: Apply input preprocessing when flushing class updates.
sirreal 020155a
HTML API: Add tests for NULL bytes in attribute names.
sirreal 442e820
HTML API: Replace NULL bytes in comparable attribute names.
sirreal 135157f
HTML API: Add tests for NULL bytes in tag names.
sirreal 5b8ad27
HTML API: Replace NULL bytes in tag names at the read boundary.
sirreal f6f58fd
HTML API: Add test for NULL bytes in API-supplied class values.
sirreal ba93ef4
HTML API: Stop replacing NULL bytes in API-supplied class values.
sirreal 9baceb6
HTML API: Avoid re-scanning attribute values without CR or NULL bytes.
sirreal 3b415d1
HTML API: Add tests for character references preceding replaced bytes.
sirreal 8f5e8b2
HTML API: Replace NULL bytes after decoding attribute values.
sirreal e18f389
HTML API: Detect ambiguous character reference followers by ASCII only.
sirreal 449bf72
HTML API: Add tests for tag-name queries over replaced names.
sirreal 5c52634
HTML API: Match tag-name queries against replaced names.
sirreal 5292c7d
HTML API: Add test for case-insensitive class update flushing.
sirreal 8c26adf
HTML API: Flush class updates for any case spelling of "class".
sirreal e41d168
HTML API: Pin edge cases of replaced names and document boundaries.
sirreal 78d58d0
HTML API: Add tests for serializing decoded carriage returns.
sirreal 4127e36
HTML API: Serialize decoded carriage returns as character references.
sirreal 9c3302f
HTML API: Pin serialization of NULL bytes in API-supplied values.
sirreal 96c6fb8
HTML API: Consolidate serializer NULL-byte handling.
sirreal 3a74497
HTML API: Pin rawtext serialization and reparse round trips.
sirreal 11967d9
Merge remote-tracking branch 'upstream/trunk' into HEAD
sirreal 88a4d52
Merge remote-tracking branch 'upstream/trunk' into HEAD
sirreal 7f64468
Merge branch 'trunk' into spec-compliant-getters
sirreal 62d682f
Revert irrelevant doc changes
sirreal b7d4b39
Remove redundant tests
sirreal 30b17da
Remove excessive docs
sirreal 7e451fe
Simplify tag name matching logic
sirreal b3d15f5
Remove excessive documentation
sirreal 624fe63
simplify comment
sirreal 5293caa
Remove excessive documentation
sirreal 7f77e93
Simplify attribute value getter
sirreal 908f4b3
Ignore new private method
sirreal fed8e18
Rework new function docs
sirreal 3c61f03
Remove excessive docs
sirreal 480bce8
Reformat comment
sirreal d701662
Test function types
sirreal 0727c27
Merge branch 'spec-compliant-getters' into html-api-fuzz-fiz/decoded-cr
sirreal 9eda861
Merge branch 'trunk' into html-api-fuzz-fiz/decoded-cr
sirreal df36b29
Use hex numeric character reference
sirreal a0ebe96
Merge branch 'trunk' into html-api-fuzz-fiz/decoded-cr
sirreal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are already handled since r62667:
wordpress-develop/src/wp-includes/html-api/class-wp-html-tag-processor.php
Line 2958 in cec8718