This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 216073 - The diff algorithm needs to be refined
Summary: The diff algorithm needs to be refined
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: Live HTML (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-27 14:57 UTC by Petr Jiricka
Modified: 2012-10-08 13:30 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of revision 1 (12.35 KB, image/png)
2012-07-27 14:58 UTC, Petr Jiricka
Details
Screenshot of revision 2 (12.04 KB, image/png)
2012-07-27 14:58 UTC, Petr Jiricka
Details
Test project which reproduce this problem (contains both client and server part), (74.37 KB, application/zip)
2012-07-30 12:20 UTC, Petr Jiricka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2012-07-27 14:57:48 UTC
See the attached screenshots of first and second revision of a file in Live HTML view. The first revision contains:

    <body>
        <div id="header"></div>

The second revision added:
        <div style="padding: 0px; ...
between these two tags, but the diff makes it look like id="header" text was removed, but in reality that's not the case.

I can provide the test application if needed - it is the REST client application generated by our wizard.
Comment 1 Petr Jiricka 2012-07-27 14:58:38 UTC
Created attachment 122465 [details]
Screenshot of revision 1
Comment 2 Petr Jiricka 2012-07-27 14:58:54 UTC
Created attachment 122466 [details]
Screenshot of revision 2
Comment 3 David Konecny 2012-07-29 21:34:24 UTC
Concrete textual example based on which a testcase can be added would be good. It looks to me that additional <div> was added between <body> and <div id="header"></div>.
Comment 4 Petr Jiricka 2012-07-30 12:20:44 UTC
Created attachment 122526 [details]
Test project which reproduce this problem (contains both client and server part),