Change not to delete the element specified in invisible

This commit is contained in:
noellabo
2020-02-24 23:56:04 +09:00
parent 903db2a457
commit 7bc410d09d
2 changed files with 0 additions and 2 deletions

View File

@@ -92,7 +92,6 @@ export function normalizeStatus(status, normalOldStatus) {
normalStatus.quote.account.display_name_html = emojify(escapeTextContentForBrowser(displayName), quote_account_emojiMap);
normalStatus.quote.search_index = domParser.parseFromString(quote_searchContent, 'text/html').documentElement.textContent;
let docElem = domParser.parseFromString(normalStatus.quote.content, 'text/html').documentElement;
Array.from(docElem.querySelectorAll('span.invisible'), span => span.remove());
Array.from(docElem.querySelectorAll('p,br'), line => {
let parentNode = line.parentNode;
if (line.nextSibling) {