What steps will reproduce the problem?
1. load hyphenator via JS, e.g. with yepnope.js
2. only load hyphenator once rest of page has finished loading
3. run hyphenator
What is the expected output? What do you see instead?
Text should be hyphenated. It is not.
run() checks documentLoaded, which is set with event listeners. But, in this
case, the events have already fired and documentLoaded never gets set.
What version of the product are you using? On what operating system?
Hyphenator 4.0.0, Chrome 16.0.912.63/Mac OS 10.7.
Please provide any additional information below.
In my limited tests, can be fixed by changing line 2188 to:
if (isBookmarklet || documentLoaded || document.readyState === 'complete' || document.readyState === 'interactive') {
Original issue reported on code.google.com by davenewtron on 19 Apr 2012 at 6:51
Original issue reported on code.google.com by
davenewtron
on 19 Apr 2012 at 6:51