From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: Org-Mode Homepage error Date: Wed, 17 Aug 2011 17:58:23 +0200 Message-ID: <871uwk9gio.fsf@Rainer.invalid> References: <2152B3DFC552DE47A0A36CCC93D735310439FF32@mx01.ecoplan.local> <874o2ai1up.fsf@googlemail.com> <4524.1311625834@alphaville.americas.hpqcorp.net> <87oc0ihwvk.fsf@gnu.org> <80bowhxlpz.fsf@somewhere.org> <87mxg1ozgc.fsf@gnu.org> <87vcupdobh.fsf@Rainer.invalid> <87pqkvpr1u.fsf@altern.org> <87r556uz2f.fsf@Rainer.invalid> <8739h1i0cb.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48132) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtiVx-0006iu-1z for emacs-orgmode@gnu.org; Wed, 17 Aug 2011 11:58:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QtiVu-0005lK-Fo for emacs-orgmode@gnu.org; Wed, 17 Aug 2011 11:58:45 -0400 Received: from lo.gmane.org ([80.91.229.12]:58195) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtiVu-0005lF-5o for emacs-orgmode@gnu.org; Wed, 17 Aug 2011 11:58:42 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QtiVs-0003ie-8l for emacs-orgmode@gnu.org; Wed, 17 Aug 2011 17:58:40 +0200 Received: from p57aac99b.dip.t-dialin.net ([87.170.201.155]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Aug 2011 17:58:40 +0200 Received: from Stromeko by p57aac99b.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Aug 2011 17:58:40 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Bastien writes: > Well, the HTML page was empty -- same error than with the unpatched > version of org-info.js. Fetching a stale copy from cache perhaps? I did all my testing locally and changed things around to make sure it would really load the version I just created... > If you're confident this works with this structure: > >
>

Title

>
> >
> ... >
> > then I will apply the patch (with a ChangeLog!) That works for me in Firefox6 and Konqueror (both KHTML and WebKit mode) in both the minified and the source version. I've used the latest version of yuicompressor (2.4.6 instead of 2.4.2), but that should not make a difference. Proper patch attached. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-Find-title-differently-to-allow-it-to-reside-in-prea.patch >From 55fd3d1b7f82460e28d8fcc50c6ea0eb41197fef Mon Sep 17 00:00:00 2001 From: Achim Gratz Date: Wed, 17 Aug 2011 17:49:56 +0200 Subject: [PATCH] Find title differently to allow it to reside in preamble * org-info-src.js: find the title heading via it's class property instead of relying on it to be the first heading in div content TINYCHANGE --- code/org-info-js/org-info-src.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/code/org-info-js/org-info-src.js b/code/org-info-js/org-info-src.js index 2e49e9c..b521c50 100644 --- a/code/org-info-js/org-info-src.js +++ b/code/org-info-js/org-info-src.js @@ -738,7 +738,7 @@ var org_html_manager = { // Move the title into the first visible section. // TODO: show title above everything if FIXED_TOC !!! - t.TITLE = t.BODY.getElementsByTagName("h1")[0]; + t.TITLE = document.getElementsByClassName("title")[0]; if(t.INNER_TITLE && !t.FIXED_TOC && t.VIEW != t.SLIDE_VIEW) { t.INNER_TITLE = t.TITLE.cloneNode(true); /* TODO: this is still based on wrong behaviour of browsers (same id for two elements) -- 1.7.6 --=-=-= Content-Type: text/plain Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf rackAttack V1.04R1: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada --=-=-=--