[wp-trac] [WordPress Trac] #61646: HTML API: Improvements to testing and verification in 6.7
WordPress Trac
noreply at wordpress.org
Fri Jul 12 22:27:36 UTC 2024
#61646: HTML API: Improvements to testing and verification in 6.7
-------------------------+---------------------
Reporter: dmsnell | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 6.7
Component: HTML API | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+---------------------
Comment (by dmsnell):
In [changeset:"58714" 58714]:
{{{
#!CommitTicketReference repository="" revision="58714"
HTML API: Add context to Unsupported_Exception class for improved
debugging.
The HTML Processor internally throws an exception when it reaches HTML
that it knows it cannot process, but this exception is not made
available to calling code. It can be useful to extract more knowledge
about why it gave up, especially for debugging purposes.
In this patch, more context is added to the WP_HTML_Unsupported_Exception
and the last exception is made available to calling code through a new
method, `get_unsupported_exception()`.
Developed in https://github.com/WordPress/wordpress-develop/pull/6985
Discussed in https://core.trac.wordpress.org/ticket/61646
Props bernhard-reiter, dmsnell, jonsurrell.
See #61646.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61646#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list