GNOME Bugzilla – Bug 307948
CSS / JS error
Last modified: 2005-11-21 20:58:31 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]
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 */
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