xles / hyphenator

Automatically exported from code.google.com/p/hyphenator
GNU General Public License v3.0
0 stars 0 forks source link

"undefined value" error in Konqueror 4.8.4 on debian wheezy #202

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

The hyphenator.js script throws a window with the following message: 
"hyphenator.js says an error occurred undefined value" when loading a 
particular web page in Konqueror 4.8.4-2 (debian linux stable, aka wheezy). The 
error occurs also when changing user-agent identity of the browser.

This error does not occurs in iceweasel, nor in a newer version of konqueror 
(version 4.13.3-1 in debian testing, aka jessie), which I used before 
downgrading my OS. There is no error in the last Chrome for Linux version, too. 
(I could not test with chromium because the page where the error occurs does 
not fully load for some reason I still ignore).

The page where the error occurs is the following:
http://jchampavere.free.fr/?page=radio

The expected hyphenation concerns two <div> tags (show as two columns). The 
language is french, as defined in <html>

The used version of hyphenator.js is 4.2.0. I tried with 4.1.0: no error but 
the script had no effect.

The OS is debian wheezy. I recall that the browser is Konqueror 4.8.4.

Note that the working example provided in 
http://hyphenator.googlecode.com/svn/tags/Version%204.2.0/WorkingExample.html 
works well with the previous configuration.

Original issue reported on code.google.com by jchampavere on 14 Aug 2014 at 5:08

GoogleCodeExporter commented 9 years ago
I should add the following precisions:

- Only the two <div> tags with the "hyphenate" class don't show, i.e., after 
closing the error window, the content of the page except those tags is visible.

- This happens with a fresh install of debian wheezy with kde, so it should be 
easily reproductible in a virtual machine.

Original comment by jchampavere on 16 Aug 2014 at 7:58

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the report.
First issue that I found is that Hyphenator.js doesn't know how to handle the 
audio tags. I'll add this to the dontHyphenate-Tag-Collection in a future 
release.

But still the hyphenated text doesn't show up…

Original comment by mathiasn...@gmail.com on 20 Sep 2014 at 6:29

GoogleCodeExporter commented 9 years ago
> But still the hyphenated text doesn't show up…
That was an issue of my test setting (forgot to upload the patterns)

There is an issue with the <audio>-tag in Konqueror and Hyphenator.js

Details:
Konqueror returns 'undefined' when Hyphenator.js accesses the className of the 
<audio>-tag, while other browsers return an empty string, if no class is set 
(filed bug to konqueror: https://bugs.kde.org/show_bug.cgi?id=339247)

Workaround:
Add the audio-tag to the dontHyphenate-list in Hyphenator.js (Line 241)

Original comment by mathiasn...@gmail.com on 20 Sep 2014 at 7:46

GoogleCodeExporter commented 9 years ago
Hi Mathias,

I confirm that adding the audio tag to the dontHyphenate-list in Hyphenator.js 
(Line 241) solves this particular issue.

Thanks for your help.

Original comment by jchampavere on 21 Sep 2014 at 7:39

GoogleCodeExporter commented 9 years ago

Original comment by mathiasn...@gmail.com on 25 Sep 2014 at 3:03