-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
HTML API: Add normalization functions. #7331
Commits on Sep 11, 2024
-
HTML API: Add normalization functions.
The HTML Processor understands HTML regardless of how it's written, but many other functions are unable to do so. There are all sorts of syntax peculiarities and semantics that would be helpful to eliminate using the knowledge contained in the HTML Processor. This patch introduces `WP_HTML_Processor::normalize( $html )` as a method which takes a fragment of HTML as input and then returns a serialized version of the input, "cleaning it up" by balancing all tags, providing all missing optional tags, re-encoding all text, removing all duplicate attributes, and double-quote-escaping all attribute values. Core-62036
Configuration menu - View commit details
-
Copy full SHA for d372c97 - Browse repository at this point
Copy the full SHA d372c97View commit details -
Configuration menu - View commit details
-
Copy full SHA for 07e89bb - Browse repository at this point
Copy the full SHA 07e89bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 754118e - Browse repository at this point
Copy the full SHA 754118eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c6e34c - Browse repository at this point
Copy the full SHA 9c6e34cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f5783e - Browse repository at this point
Copy the full SHA 7f5783eView commit details -
Progressive tense for function summaries.
Co-authored-by: Weston Ruter <westonruter@git.wordpress.org>
Configuration menu - View commit details
-
Copy full SHA for 2aa89fa - Browse repository at this point
Copy the full SHA 2aa89faView commit details -
Leave space before self-closing flag to avoid later problems.
If code later in the processing pipeline adds unquoted attributes and doesn't add the requisite space following that, then another parser might find that the solidus is part of the attribute value instead of serving as a self-closing flag. Co-authored-by: Weston Ruter <westonruter@git.wordpress.org>
Configuration menu - View commit details
-
Copy full SHA for 7029b25 - Browse repository at this point
Copy the full SHA 7029b25View commit details -
Expand support for bogus comments.
Co-authored-by: Weston Ruter <westonruter@git.wordpress.org>
Configuration menu - View commit details
-
Copy full SHA for 00a5773 - Browse repository at this point
Copy the full SHA 00a5773View commit details -
Configuration menu - View commit details
-
Copy full SHA for 99799b7 - Browse repository at this point
Copy the full SHA 99799b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for db24c11 - Browse repository at this point
Copy the full SHA db24c11View commit details -
Co-authored-by: Weston Ruter <westonruter@git.wordpress.org>
Configuration menu - View commit details
-
Copy full SHA for 7b8aa53 - Browse repository at this point
Copy the full SHA 7b8aa53View commit details -
Change error level to warning.
Co-authored-by: Weston Ruter <westonruter@git.wordpress.org>
Configuration menu - View commit details
-
Copy full SHA for 18b5005 - Browse repository at this point
Copy the full SHA 18b5005View commit details
Commits on Sep 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 47f7f08 - Browse repository at this point
Copy the full SHA 47f7f08View commit details -
Configuration menu - View commit details
-
Copy full SHA for 92558b9 - Browse repository at this point
Copy the full SHA 92558b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6167887 - Browse repository at this point
Copy the full SHA 6167887View commit details -
Configuration menu - View commit details
-
Copy full SHA for 95756e5 - Browse repository at this point
Copy the full SHA 95756e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for fca6481 - Browse repository at this point
Copy the full SHA fca6481View commit details -
Configuration menu - View commit details
-
Copy full SHA for b37b312 - Browse repository at this point
Copy the full SHA b37b312View commit details -
Configuration menu - View commit details
-
Copy full SHA for dd4ff16 - Browse repository at this point
Copy the full SHA dd4ff16View commit details -
Configuration menu - View commit details
-
Copy full SHA for 588020f - Browse repository at this point
Copy the full SHA 588020fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0abf367 - Browse repository at this point
Copy the full SHA 0abf367View commit details -
Configuration menu - View commit details
-
Copy full SHA for 37b7fe8 - Browse repository at this point
Copy the full SHA 37b7fe8View commit details