Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue May 1, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 2 Apr 2013 at 5:47

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant