CADbloke / daisydiff

Automatically exported from code.google.com/p/daisydiff

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

when we comparing the two files have no change, daisy diff throwing Uncaught unknown destination..

GoogleCodeExporter opened this issue · comments

What steps will reproduce the problem?
1. Take two html files with same html tags & same data.
2. Compare those files and put the result data in to iframe 
3. click on Last button then You can oberserve the error in firebug "Uncaught 
unknown destination".

What is the expected output? What do you see instead?
Disable the last button, when there are no changes between the files

What version of the product are you using? On what operating system?
daisy diff version 1.1 & Windows 7 Operating System

Please provide any additional information below.
supplying source information like this 

HtmlCleaner cleaner = new HtmlCleaner();

InputSource oldSource = new InputSource(oldVersion);

InputSource newSource = new InputSource(newVersion);

DomTreeBuilder oldHandler = new DomTreeBuilder();

cleaner.cleanAndParse(oldSource, oldHandler);

TextNodeComparator leftComparator = new TextNodeComparator(oldHandler,locale);

DomTreeBuilder newHandler = new DomTreeBuilder();

cleaner.cleanAndParse(newSource, newHandler);

TextNodeComparator rightComparator = new TextNodeComparator(newHandler,locale);

String[] css = { "css/diff.css" };

doCSS(css, postProcess);

HtmlSaxDiffOutput output = new HtmlSaxDiffOutput(postProcess, "diffTag");

HTMLDiffer differ = new HTMLDiffer(output);

differ.diff(leftComparator, rightComparator);

postProcess.endElement("", "diff", "diff");

postProcess.endElement("", "diffReport", "diffReport");

postProcess.endDocument();

htmlStr = st.getBuffer().toString();

htmlStr = htmlStr.substring(38,htmlStr.length());

Response is sending to iframe tag

Original issue reported on code.google.com by Nakka.Sr...@gmail.com on 2 Apr 2013 at 5:47

Attachments: