table解析有异议
wangguanl opened this issue · 1 comments
wangguanl commented
<table style="visibility: visible;"><thead style="visibility: visible;"><tr style="border-width: 1px 0px 0px; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-top-style: solid; border-top-color: rgb(204, 204, 204); background-color: white; visibility: visible;" data-style="border-width: 1px 0px 0px; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-top-style: solid; border-top-color: rgb(204, 204, 204); background-color: white; visibility: visible;" class="js_darkmode__9"><th style="border-top-width: 1px; border-color: rgb(204, 204, 204); text-align: left; background-color: rgb(240, 240, 240); min-width: 85px; visibility: visible;" data-style="border-top-width: 1px; border-color: rgb(204, 204, 204); text-align: left; background-color: rgb(240, 240, 240); min-width: 85px; visibility: visible;" class="js_darkmode__10"><strong style="visibility: visible;">水平</strong></th><th style="border-top-width: 1px; border-color: rgb(204, 204, 204); text-align: left; background-color: rgb(240, 240, 240); min-width: 85px; visibility: visible;" data-style="border-top-width: 1px; border-color: rgb(204, 204, 204); text-align: left; background-color: rgb(240, 240, 240); min-width: 85px; visibility: visible;" class="js_darkmode__11"><strong style="visibility: visible;">结果</strong></th><th style="border-top-width: 1px; border-color: rgb(204, 204, 204); text-align: left; background-color: rgb(240, 240, 240); min-width: 85px; visibility: visible;" data-style="border-top-width: 1px; border-color: rgb(204, 204, 204); text-align: left; background-color: rgb(240, 240, 240); min-width: 85px; visibility: visible;" class="js_darkmode__12"><strong style="visibility: visible;">备注</strong></th></tr></thead><tbody style="border-width: 0px; border-style: initial; border-color: initial; visibility: visible;"><tr style="border-width: 1px 0px 0px; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-top-style: solid; border-top-color: rgb(204, 204, 204); background-color: white; visibility: visible;" data-style="border-width: 1px 0px 0px; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-top-style: solid; border-top-color: rgb(204, 204, 204); background-color: white; visibility: visible;" class="js_darkmode__13"><td style="border-color: rgb(204, 204, 204); min-width: 85px; visibility: visible;" data-style="border-color: rgb(204, 204, 204); min-width: 85px; visibility: visible;" class="js_darkmode__14"><strong style="visibility: visible;">不能</strong>按时保质完成业务需求</td><td style="border-color: rgb(204, 204, 204); min-width: 85px; visibility: visible;" data-style="border-color: rgb(204, 204, 204); min-width: 85px; visibility: visible;" class="js_darkmode__15">差(3.25)</td><td style="border-color: rgb(204, 204, 204); min-width: 85px; visibility: visible;" data-style="border-color: rgb(204, 204, 204); min-width: 85px; visibility: visible;" class="js_darkmode__16">不具备前端基本能力,达不到公司要求</td></tr><tr style="border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-top-style: solid;border-top-color: rgb(204, 204, 204);background-color: rgb(248, 248, 248);" data-style="border-width: 1px 0px 0px; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-top-style: solid; border-top-color: rgb(204, 204, 204); background-color: rgb(248, 248, 248);" class="js_darkmode__17"><td style="border-color: rgb(204, 204, 204);min-width: 85px;" data-style="border-color: rgb(204, 204, 204); min-width: 85px;" class="js_darkmode__18"><strong>能</strong>按时保质完成业务需求</td><td style="border-color: rgb(204, 204, 204);min-width: 85px;" data-style="border-color: rgb(204, 204, 204); min-width: 85px;" class="js_darkmode__19">中(3.5)</td><td style="border-color: rgb(204, 204, 204);min-width: 85px;" data-style="border-color: rgb(204, 204, 204); min-width: 85px;" class="js_darkmode__20">具备前端基本能力,符合公司要求</td></tr><tr style="border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-top-style: solid;border-top-color: rgb(204, 204, 204);background-color: white;" data-style="border-width: 1px 0px 0px; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-top-style: solid; border-top-color: rgb(204, 204, 204); background-color: white;" class="js_darkmode__21"><td style="border-color: rgb(204, 204, 204);min-width: 85px;" data-style="border-color: rgb(204, 204, 204); min-width: 85px;" class="js_darkmode__22">创造新方法新思路,能帮助业务<strong>更快</strong>或者<strong>更好</strong>的迭代</td><td style="border-color: rgb(204, 204, 204);min-width: 85px;" data-style="border-color: rgb(204, 204, 204); min-width: 85px;" class="js_darkmode__23">高(3.75)</td><td style="border-color: rgb(204, 204, 204);min-width: 85px;" data-style="border-color: rgb(204, 204, 204); min-width: 85px;" class="js_darkmode__24">能体现个人价值,超出公司要求</td></tr></tbody></table>
上面的代码格式化后页面会报错
<table style="visibility: visible">
<thead style="visibility: visible">
<tr
style="
border-width: 1px 0px 0px;
border-right-style: initial;
border-bottom-style: initial;
border-left-style: initial;
border-right-color: initial;
border-bottom-color: initial;
border-left-color: initial;
border-top-style: solid;
border-top-color: rgb(204, 204, 204);
background-color: white;
visibility: visible;
"
data-style="border-width: 1px 0px 0px; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-top-style: solid; border-top-color: rgb(204, 204, 204); background-color: white; visibility: visible;"
class="js_darkmode__9"
>
<th
style="
border-top-width: 1px;
border-color: rgb(204, 204, 204);
text-align: left;
background-color: rgb(240, 240, 240);
min-width: 85px;
visibility: visible;
"
data-style="border-top-width: 1px; border-color: rgb(204, 204, 204); text-align: left; background-color: rgb(240, 240, 240); min-width: 85px; visibility: visible;"
class="js_darkmode__10"
>
<strong style="visibility: visible">水平</strong>
</th>
<th
style="
border-top-width: 1px;
border-color: rgb(204, 204, 204);
text-align: left;
background-color: rgb(240, 240, 240);
min-width: 85px;
visibility: visible;
"
data-style="border-top-width: 1px; border-color: rgb(204, 204, 204); text-align: left; background-color: rgb(240, 240, 240); min-width: 85px; visibility: visible;"
class="js_darkmode__11"
>
<strong style="visibility: visible">结果</strong>
</th>
<th
style="
border-top-width: 1px;
border-color: rgb(204, 204, 204);
text-align: left;
background-color: rgb(240, 240, 240);
min-width: 85px;
visibility: visible;
"
data-style="border-top-width: 1px; border-color: rgb(204, 204, 204); text-align: left; background-color: rgb(240, 240, 240); min-width: 85px; visibility: visible;"
class="js_darkmode__12"
>
<strong style="visibility: visible">备注</strong>
</th>
</tr>
</thead>
<tbody
style="
border-width: 0px;
border-style: initial;
border-color: initial;
visibility: visible;
"
>
<tr
style="
border-width: 1px 0px 0px;
border-right-style: initial;
border-bottom-style: initial;
border-left-style: initial;
border-right-color: initial;
border-bottom-color: initial;
border-left-color: initial;
border-top-style: solid;
border-top-color: rgb(204, 204, 204);
background-color: white;
visibility: visible;
"
data-style="border-width: 1px 0px 0px; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-top-style: solid; border-top-color: rgb(204, 204, 204); background-color: white; visibility: visible;"
class="js_darkmode__13"
>
<td
style="
border-color: rgb(204, 204, 204);
min-width: 85px;
visibility: visible;
"
data-style="border-color: rgb(204, 204, 204); min-width: 85px; visibility: visible;"
class="js_darkmode__14"
>
<strong style="visibility: visible">不能</strong>按时保质完成业务需求
</td>
<td
style="
border-color: rgb(204, 204, 204);
min-width: 85px;
visibility: visible;
"
data-style="border-color: rgb(204, 204, 204); min-width: 85px; visibility: visible;"
class="js_darkmode__15"
>
差(3.25)
</td>
<td
style="
border-color: rgb(204, 204, 204);
min-width: 85px;
visibility: visible;
"
data-style="border-color: rgb(204, 204, 204); min-width: 85px; visibility: visible;"
class="js_darkmode__16"
>
不具备前端基本能力,达不到公司要求
</td>
</tr>
<tr
style="
border-width: 1px 0px 0px;
border-right-style: initial;
border-bottom-style: initial;
border-left-style: initial;
border-right-color: initial;
border-bottom-color: initial;
border-left-color: initial;
border-top-style: solid;
border-top-color: rgb(204, 204, 204);
background-color: rgb(248, 248, 248);
"
data-style="border-width: 1px 0px 0px; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-top-style: solid; border-top-color: rgb(204, 204, 204); background-color: rgb(248, 248, 248);"
class="js_darkmode__17"
>
<td
style="border-color: rgb(204, 204, 204); min-width: 85px"
data-style="border-color: rgb(204, 204, 204); min-width: 85px;"
class="js_darkmode__18"
>
<strong>能</strong>按时保质完成业务需求
</td>
<td
style="border-color: rgb(204, 204, 204); min-width: 85px"
data-style="border-color: rgb(204, 204, 204); min-width: 85px;"
class="js_darkmode__19"
>
中(3.5)
</td>
<td
style="border-color: rgb(204, 204, 204); min-width: 85px"
data-style="border-color: rgb(204, 204, 204); min-width: 85px;"
class="js_darkmode__20"
>
具备前端基本能力,符合公司要求
</td>
</tr>
<tr
style="
border-width: 1px 0px 0px;
border-right-style: initial;
border-bottom-style: initial;
border-left-style: initial;
border-right-color: initial;
border-bottom-color: initial;
border-left-color: initial;
border-top-style: solid;
border-top-color: rgb(204, 204, 204);
background-color: white;
"
data-style="border-width: 1px 0px 0px; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-top-style: solid; border-top-color: rgb(204, 204, 204); background-color: white;"
class="js_darkmode__21"
>
<td
style="border-color: rgb(204, 204, 204); min-width: 85px"
data-style="border-color: rgb(204, 204, 204); min-width: 85px;"
class="js_darkmode__22"
>
创造新方法新思路,能帮助业务<strong>更快</strong>或者<strong>更好</strong>的迭代
</td>
<td
style="border-color: rgb(204, 204, 204); min-width: 85px"
data-style="border-color: rgb(204, 204, 204); min-width: 85px;"
class="js_darkmode__23"
>
高(3.75)
</td>
<td
style="border-color: rgb(204, 204, 204); min-width: 85px"
data-style="border-color: rgb(204, 204, 204); min-width: 85px;"
class="js_darkmode__24"
>
能体现个人价值,超出公司要求
</td>
</tr>
</tbody>
</table>
wangguanl commented
应该是正则解析的代码片段有问题