[wp-trac] [WordPress Trac] #58517: HTML API: Introduce HTML Processor, a higher-level partner to the Tag Processor

WordPress Trac noreply at wordpress.org
Tue Apr 16 12:07:03 UTC 2024


#58517: HTML API: Introduce HTML Processor, a higher-level partner to the Tag
Processor
----------------------------------------+------------------------------
 Reporter:  dmsnell                     |       Owner:  Bernhard Reiter
     Type:  enhancement                 |      Status:  closed
 Priority:  normal                      |   Milestone:  6.4
Component:  HTML API                    |     Version:
 Severity:  normal                      |  Resolution:  fixed
 Keywords:  has-unit-tests 2nd-opinion  |     Focuses:
----------------------------------------+------------------------------

Comment (by dmsnell):

 In [changeset:"58010" 58010]:
 {{{
 #!CommitTicketReference repository="" revision="58010"
 HTML API: Validate HTML Processor against external test suite from
 html5lib.

 In this patch, the test suite from html5lib validates the tree-
 construction
 steps in the HTML Processor to ensure that they are behaving according to
 the
 HTML specification. This suite of tests is also used by the servo project
 to
 test its html5ever package.

 A new test module in the HTML API transforms HTML Processor output to
 match
 the expected tree shape from the external tests. For cases where there are
 tests validating behaviors of unsupported HTML tags and constructs, the
 tests
 are marked as skipped. As the HTML API continues to expand its own
 support,
 the number of skipped tests will automatically shrink down towards zero.

 Additional tests are skipped through the `SKIP_TEST` array in the test
 runner.

 Fixes #60227.
 See #58517.
 Props azaozz, costdev, dmsnell, hellofromtonya, jonsurrell, jorbin,
 swisspidy.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58517#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list