Skip to content

Highlighting is incorrect on tables.Β #12

@japo32

Description

@japo32

It seems like it has trouble highlighting changes on tables when then contents of the cells are similar.

originalHTML = 
<table>
<tbody>
<tr>
<td>asd</td>
<td>asd</td>
<td>asd</td>
</tr>
<tr>
<td>asd</td>
<td>asd</td>
<td>asd</td>
</tr>
<tr>
<td>asd</td>
<td>asd</td>
<td>asd</td>
</tr>
</tbody>
</table>;

 newHTML = 
<table>
<tbody>
<tr>
<td>asd</td>
<td>asd</td>
<td>asd</td>
<td>sd</td>
</tr>
<tr>
<td>asd</td>
<td>asd</td>
<td>asd</td>
<td>sd</td>
</tr>
<tr>
<td>asd</td>
<td>asd</td>
<td>asd</td>
<td>sd</td>
</tr>
</tbody>
</table>

Screen Shot 2019-07-19 at 1 14 24 PM

 originalHTML2 =
<table>
<tbody>
<tr>
<td>asd</td>
<td>asd</td>
<td>asd</td>
</tr>
<tr>
<td>asd</td>
<td>asd</td>
<td>asd</td>
</tr>
<tr>
<td>asd</td>
<td>asd</td>
<td>asd</td>
</tr>
</tbody>
</table>;

 newHTML2 =
<table>
<tbody>
<tr>
<td>asd</td>
<td>asd</td>
<td>asd</td>
<td>asd</td>
</tr>
<tr>
<td>asd</td>
<td>asd</td>
<td>asd</td>
<td>sd</td>
</tr>
<tr>
<td>asd</td>
<td>asd</td>
<td>asd</td>
<td>sd</td>
</tr>
</tbody>
</table>;

Screen Shot 2019-07-19 at 1 13 28 PM

originalHTML3 = 
<table>
<tbody>
<tr>
<td>asd</td>
<td>asd</td>
<td>asd</td>
</tr>
<tr>
<td>asd</td>
<td>asd</td>
<td>asd</td>
</tr>
<tr>
<td>asd</td>
<td>asd</td>
<td>asd</td>
</tr>
</tbody>
</table>;

 newHTML3 = 
<table>
<tbody>
<tr>
<td>asd</td>
<td>asd</td>
<td>asd</td>
<td>kkk</td>
</tr>
<tr>
<td>kkk</td>
<td>asd</td>
<td>asd</td>
<td>sd</td>
</tr>
<tr>
<td>asd</td>
<td>asd</td>
<td>asd</td>
<td>sd</td>
</tr>
</tbody>
</table>;

Screen Shot 2019-07-19 at 1 13 35 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions