Closed (fixed)
Project:
Search API
Version:
8.x-1.x-dev
Component:
Tests
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Dec 2023 at 22:21 UTC
Updated:
24 Dec 2023 at 17:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
drunken monkeyThe attached patch should fix the tests. (Not really possible to test with the bot, unfortunately.)
The fix for
HtmlFilteris, of course, less than ideal – since the new version of the method was the problem, I simply copied the old one. I felt a much more elegant way would have been to avoid serializing the DOM object again and instead iterating through its contents, building our text tokens from that. However, iterating over the contents of a\DOMDocumentobject is apparently not that simple, so I opted for this solution instead. Other suggestions very much welcome!Comment #3
drunken monkeyComment #5
drunken monkeyMerged.