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

Summary: The diff algorithm needs to be refined
Product: web Reporter: Petr Jiricka <pjiricka>
Component: Live HTMLAssignee: David Konecny <dkonecny>
Status: NEW ---    
Severity: normal CC: dkonecny
Priority: P3    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Screenshot of revision 1
Screenshot of revision 2
Test project which reproduce this problem (contains both client and server part),

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),