bug-librejs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-librejs] compliance


From: MK
Subject: Re: [Bug-librejs] compliance
Date: Wed, 10 Jul 2013 12:58:02 -0400

On Thu, 20 Jun 2013 17:59:13 +1000
Andrew Roffey <address@hidden> wrote:

> you
> could look at an existing website that works with LibreJS as a
> reference. For example, I noticed this on the EFF.org website, before
> all of the other scripts:

Thanks for that tip -- using a comment inside a <script
type="text/javascript"> block might have helped.  Part of what made
this awkward (and the problem hard to diagnose) is the fact that firebug
(common web-dev plugin tool for firefox) evidently conflicted with
libreJS such that I could not see or access the bottom right libreJS
icon which explains the issue in detail.

I don't know if that is an issue with firebug, or libreJS, or
firefox, but it is sort of an unfortunate intersection, since my initial
response was "How the heck am I supposed to fix this without some
information about the problem", and I am sure I am not the only person
to have looked at libreJS for the first time with firebug already
installed.

I realized the difference when I ran FF as a user who does have firebug
in.   Another tip, if you run into devs with similar
problems/complaints, is to tell them to look at the libreJS altered
source of the page -- this contains some clues, and I was not aware of
those until I noticed them casually.

> You could try something like this:
> 
> document.getElementsByTagName("body")[0].addEventListener("keypress",
>     yourFunction, false);

Fortunately I did not have to change any code.  The above made me
cringe because (while I actually don't write a lot of JS either), I
think the problem with putting that in a <head> included script is that
the body tag may not exist when the script is run (ie, you need a
cross-browser way of initializing things once everything is in the DOM).

Anyway, I think stallman.org is all libreJS compliant now.  Thanks
for the help!

Sincerely, Mark Eriksen

-- 
"Enthusiasm is not the enemy of the intellect." (said of Irving Howe)
"The angel of history[...]is turned toward the past." (Walter Benjamin)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]