My favorites | Sign in
Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 69: Firefox does not issue load or DOMContentLoaded events from XSLT
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Oct 09
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by dorian.taylor.lists, Sep 06, 2009
What steps will reproduce the problem?
1. Use Hyphenator.js as directed, but on XSLT output
2. Open in Firefox
3. Hyphenator silently fails

What is the expected output? What do you see instead?

It looks as if it posts a DOMContentLoaded event that never happens. I
tried substituting 'load' but apparently that never gets fired either.

What version of the product are you using? On what operating system?

I tried r590 but this goes back to ~r144.

Please provide any additional information below.

I'm not sure if this is related but I also have to manually load the
patterns/??.js, because that doesn't seem to happen automatically either.

This is a known bug in Firefox:
https://bugzilla.mozilla.org/show_bug.cgi?id=325891 and
https://bugzilla.mozilla.org/show_bug.cgi?id=391177 .

I work around the issue by manually loading patterns/??.js and executing
Hyphenator.hyphenateDocument() near the end of the document (in r144, I
can't get r590 to work at all). It occurs to me that some explicit method
of making sure everything gets run synchronously would make sense. I tried
tinkering with it, but it's a bit hairy and that is kind of an
architectural decision.
Comment 1 by math...@mnn.ch, Sep 06, 2009
Hi

Thanks for your submission.
I created a testcase for this issue: http://hyphenator.googlecode.com/svn/trunk/testsuite/test58.xml

Maybe we should find a way around DOMContentLoaded…
Status: Accepted
Comment 2 by math...@mnn.ch, Sep 06, 2009
I changed the runOnDOMContentLoaded-Code to an algorithm heavily inspired by jQuery.
Now it seems to work but IE falls back to onload (waits until the img is loaded).
Status: Started
Comment 3 by math...@mnn.ch, Oct 09, 2009
(No comment was entered for this change.)
Status: Fixed
Sign in to add a comment

Hosted by Google Code