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

Ono Fails if there is </html> inside javascript function #30

Closed
tosbaha opened this issue Apr 4, 2015 · 1 comment
Closed

Ono Fails if there is </html> inside javascript function #30

tosbaha opened this issue Apr 4, 2015 · 1 comment

Comments

@tosbaha
Copy link

tosbaha commented Apr 4, 2015

Let's say document has following javascript, ono stops whenever it sees ending html tag. However, ono shouldn't parse javascript I guess.

      function PrintDiv() {
            //Print Content of the Div in a New Blank Window
            var disp_setting = "toolbar=no,location=no,directories=no,menubar=no,";
            var content_vlue = document.getElementById('DivBlaBla').innerHTML;
            var docprint = window.open("", "", disp_setting);
            docprint.document.open();
            docprint.document.write('<html><head><title></title>'); 
            docprint.document.write('</head><body onLoad="self.print();window.close();">');
            docprint.document.write(content_vlue);
            docprint.document.write("</body></html>");
            docprint.document.close();
            docprint.focus();
        }
      </script>
@mattt
Copy link
Owner

mattt commented Apr 6, 2015

Fixed by 57bf481.

@mattt mattt closed this as completed Apr 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants