Uncaught SyntaxError: Unexpected identifier Readability.js:108
I want to investigate the functionality of reader mode in Firefox for
Android. To do that I took Readability.js from Firefox sources and created
a simple HTML file:
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
</head>
<body>
<script src="Readability.js"></script>
</body> </html>
If I load the above page in Chrome and open JavaScript Console I see
Uncaught SyntaxError: Unexpected identifier Readability.js:108
If I do the same in Firefox, the result is similar:
SyntaxError: missing ; before statement @ file:///XXX/Readability.js:108
Why does Readability.js work in Firefox for Android and does not when used
as shown above in desktop browsers?
No comments:
Post a Comment