Explorar el Código

text/html -> application/xml

utsushiiro hace 7 años
padre
commit
3bd2100b9b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/client/js/models/MarkdownTable.js

+ 1 - 1
src/client/js/models/MarkdownTable.js

@@ -44,7 +44,7 @@ export default class MarkdownTable {
    * return a MarkdownTable instance made from a string of HTML table tag
    */
   static fromHTMLTableTag(str) {
-    const dom = domParser.parseFromString(str, 'text/html');
+    const dom = domParser.parseFromString(str, 'application/xml');
 
     const tableElement = dom.querySelector('table');
     const trElements = tableElement.querySelectorAll('tr');