Problem/motivation
Test coverage in UrlEmbedTestBase.php was written 8 years ago to accommodate how Drupal's htmlcorrector filter behaves, and the code included a @todo to remove it when #1333730: [Meta] PHP DOM (libxml2) misinterprets HTML5 was fixed:
/**
* The expected output of the Flickr URL in a WYSIWYG.
*
* Embeds rendered via the url_embed filter generate XHTML4 markup due to
* deficiencies with libxml2.
*
* @todo Remove once https://www.drupal.org/node/1333730 lands.
*/
As a result, tests currently fail on Drupal 10.2.x
Proposed resolution
Update the test coverage to expect standard HTML5 output.
Issue fork url_embed-3413595
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
mark_fullmerWith the syntax change to match HTML5 expectations, tests pass on Gitlab CI.