From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: org-mode CSS property export bug Date: Fri, 23 Apr 2010 11:07:25 +0200 Message-ID: <8739ymedv6.fsf@gmx.de> References: <87y6gf5g6x.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O5ErQ-0008V8-4L for emacs-orgmode@gnu.org; Fri, 23 Apr 2010 05:07:44 -0400 Received: from [140.186.70.92] (port=35164 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5ErO-0008R8-DP for emacs-orgmode@gnu.org; Fri, 23 Apr 2010 05:07:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O5ErL-00069m-FW for emacs-orgmode@gnu.org; Fri, 23 Apr 2010 05:07:42 -0400 Received: from mail.gmx.net ([213.165.64.20]:35668) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1O5ErL-00069L-0X for emacs-orgmode@gnu.org; Fri, 23 Apr 2010 05:07:39 -0400 In-Reply-To: (Carsten Dominik's message of "Fri, 23 Apr 2010 08:30:33 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode@gnu.org Carsten Dominik writes: > On Apr 23, 2010, at 3:51 AM, Rick Moynihan wrote: > >> On 22 April 2010 22:29, Sebastian Rose wrote: >>> Rick Moynihan writes: >>> >>> Hey Rick, >>> >>> interesting observation! I found, the pages validate everywhere, and so >>> I started to search. It seems to be valid CSS 2 (I couldn't find a >>> evidence though). >> >> Looks like an inconsistency in the W3C specs, as it appears to be >> invalid (or absent from) the CSS selector spec, if not elsewhere. >> >> http://groups.google.com/group/jquery-en/msg/ca6ecd94ad4a23bd >> >>> Opera and firefox know how to handle that: >>> >>> >>> h3[id="sec-1.1"] >>> { >>> background-color:yellow; >>> } > > We could change . to _ , but that would break old links, so I am hesitating. > But of course if this really violates standards, we can change it. > > Sebastian has the last word on these issues. * Links How many links like that will exist? Only links from external sites will break. I found one section link, but that's "sec-1" (on de.wikipedia.org) Most links to certain sections use those custom IDs I guess. * org-info.js I would then add the underscore to the regexp in org-info.js. People who use that will have to upgrade, too. * Are there more modules involved?? sh$ grep -Fr sec- . org-docbook.el:(defcustom org-export-docbook-section-id-prefix "sec-" org-exp.el: (format "sec-%s" (org-section-number level)))) org-html.el: (setq href (format "sec-%s" snumber)) org-html.el: (setq href (cdr (assoc (concat "sec-" snumber) org-export-preferred-target-alist))) org-html.el: (setq href (or href (concat "sec-" snumber))) org-latex.el: (sec-depth (length org-export-latex-sectioning))) org-latex.el: (if (> hl-levels sec-depth) sec-depth hl-levels)))) Let's do it. You don't want people to point on orgmode saying "They don't even use valid CSS-IDs", do you? And I guess most of us users will just be fine with it. Sebastian > - Carsten > >>> >> >> Nice to know how to reference it. >> >> Cheers, >> >> R. >> >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Please use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > - Carsten > >