This issue is part of #1333730: [Meta] PHP DOM (libxml2) misinterprets HTML5.
In this issue will the masterminds/html5 library be added to Drupal 8 core. This is necessary for the filter system and for the testing system. The use of this library for both the filter system and the testing system will be added in follow-up issues. This library has been chosen, because it does what we want and is ready to be used. All the alternatives have problems with either or both of them.
Beta phase evaluation
Issue priority | Major because the bug has many repercussions on filters using the HTML filter, and under some circumstances could result in an invalid DOM. Not critical because it does not render the HTML filter unusable. Also the testing system needs HTML5 support to test HTML5 code. |
---|---|
Prioritized changes | The main goal of this issue is a bugfix to for HTML5 support, which is part of the Drupal 8 product. |
Commit credits
Please give commit credits to all who have worked on the parent issue (#1333730: [Meta] PHP DOM (libxml2) misinterprets HTML5).
Comment | File | Size | Author |
---|---|---|---|
#13 | 2429363-13.patch | 429.71 KB | daffie |
#13 | 2429363-13-review-do-not-test.patch | 6.17 KB | daffie |
Comments
Comment #1
daffie CreditAttribution: daffie commentedComment #2
daffie CreditAttribution: daffie commented#2433009: Add Mink, with Goutte driver, to core has landed. So we need a re-roll.
Comment #4
daffie CreditAttribution: daffie commented#2433009: Add Mink, with Goutte driver, to core has been reverted. For reviewing use the patch from the first comment.
Comment #5
daffie CreditAttribution: daffie commentedComment #6
daffie CreditAttribution: daffie commentedThe patch from comment #1 adds masterminds/html5 version 1.0.7 to drupal core. The latest stable release is version 2.1.0.
Comment #7
daffie CreditAttribution: daffie commented#2433009: Add Mink, with Goutte driver, to core has re-landed again. So re-rolling the patch again. :(
Comment #8
daffie CreditAttribution: daffie commented#2440937: Update release for Goutte driver has landed. Re-rolling is so much FUN!!!!
Comment #9
mrjmd CreditAttribution: mrjmd commentedThis looks good to me.
I did a quick functional test as well, I applied the patch here as well as the patch from #2441373: Upgrade tests to HTML5 and ran the test: everything passed.
Comment #10
webchickTechnically a new library, so this goes to Dries.
Comment #12
Dries CreditAttribution: Dries commentedI'm ok with adding this library. It seems necessary to resolve the bug. :-)
Comment #13
daffie CreditAttribution: daffie commentedComment #14
mrjmd CreditAttribution: mrjmd commentedLooks good :).
Comment #15
alexpottCommitted 41dfab8 and pushed to 8.0.x. Thanks!