Firefox: Fix parsing of style tags in creators notes
| @@ -750,10 +750,9 @@ function getStyleContentsFromMarkdown(text) { | ||
| 750 | 750 | return ''; |
| 751 | 751 | } |
| 752 | 752 | |
| 753 | - const div = document.createElement('div'); | |
| 754 | 753 | const html = converter.makeHtml(substituteParams(text)); |
| 755 | - div.innerHTML = html; | |
| 754 | + const parsedDocument = new DOMParser().parseFromString(html, 'text/html'); | |
| 756 | 755 | const styleElements = Array.from(divparsedDocument.querySelectorAll('style')); |
| 757 | 756 | return styleElements |
| 758 | 757 | .filter(s => s.textContent.trim().length > 0) |
| 759 | 758 | .map(s => s.textContent.trim()) |