After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 307948 - CSS / JS error
CSS / JS error
Status: RESOLVED FIXED
Product: yelp
Classification: Applications
Component: General
git master
Other Linux
: Normal normal
: ---
Assigned To: Shaun McCance
Yelp maintainers
Depends on:
Blocks:
 
 
Reported: 2005-06-16 17:19 UTC by Christian Persch
Modified: 2005-11-21 20:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Persch 2005-06-16 17:19:23 UTC
Using a gecko debug build, I get these warnings on loading help pages:

CSS Error (file:///opt/firefox-trunk-debug/share/yelp/toc.xml#Other :34.27):
Error in parsing value for property 'padding-top'.  Declaration dropped.

and

************************************************************
* Call to xpconnect wrapped JSObject produced this error:  *
[Exception... "'[JavaScript Error: "slt.lt has no properties" {file:
"file:///opt/firefox-trunk-debug/share/yelp/yelp.js" line: 29}]' when calling
method: [nsIDOMEventListener::handleEvent]"  nsresult: "0x80570021
(NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)"  location: "<unknown>"  data: yes]
Comment 1 Stuart Langridge 2005-09-02 12:17:20 UTC
On the second point, about "slt.lt has no properties", the patch below should
fix it: the JavaScript doesn't check that there actually *is* a linktrail before
it starts trying to manipulate said linktrail. 

--- yelp.js.orig        Fri Sep 02 13:15:20 2005
+++ yelp.js     Fri Sep 02 13:16:00 2005
@@ -3,6 +3,7 @@
   beginning of it until it's no longer wider than the screen */
   init: function() {
     slt.lt = document.getElementById('linktrail');
+    if (!slt.lt) return;

     /* Try and add links, in case we've just resized the
        window to be bigger */


Comment 2 Don Scorgie 2005-11-21 20:58:31 UTC
Fixed both errors in CVS, plus a couple that popped up in info page css:

2005-11-21  Don Scorgie  <dscorgie@cvs.gnome.org>

	* src/yelp-info-pager.c: 
	* stylesheets/toc2html.xsl: 
	* stylesheets/info2html.xsl: 
	Fix CSS validation errors
	* data/yelp.js: 
	Fix js error (from Stuart Langridge)
	Closes bug #307948