From mboxrd@z Thu Jan 1 00:00:00 1970 From: pinard@iro.umontreal.ca (=?utf-8?Q?Fran=C3=A7ois?= Pinard) Subject: Re: ATTR_HTML for a clickable image, howto? Date: Thu, 05 Apr 2012 11:02:55 -0400 Message-ID: <86vclekyqo.fsf@iro.umontreal.ca> References: <86pqbrywgr.fsf@iro.umontreal.ca> <87r4w63602.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFoDQ-0005dx-8a for emacs-orgmode@gnu.org; Thu, 05 Apr 2012 11:03:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SFoDE-0003aj-Jt for emacs-orgmode@gnu.org; Thu, 05 Apr 2012 11:03:09 -0400 Received: from 206-248-137-202.dsl.teksavvy.com ([206.248.137.202]:65043 helo=mercure.progiciels-bpi.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFoDE-0003aF-BQ for emacs-orgmode@gnu.org; Thu, 05 Apr 2012 11:03:00 -0400 In-Reply-To: <87r4w63602.fsf@gnu.org> (Bastien's message of "Mon, 02 Apr 2012 10:14:21 +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: Bastien Cc: emacs-orgmode@gnu.org Bastien writes: >> then I get the display I wanted. Is there a way for having #+ATTR_HTML >> to be applied to the inner tag instead of the outer one? > Not -- it would not make sense. Hello, Bastien. I understand what you mean by saying it does not make sense with the current mechanics. Yet, from a user perspective, it surely makes sense hoping that Org offers a way for adding attributes to either part of a link, as links are kind of indivisible (so far that I know). > I suggest you fix your css instead. My knowledge of CSS is rudimentary. I'm not aware that CSS (the version widely available, not the incoming one) has enough matching capabilities to spot wrong HTML, remove attributes on some elements and add them on other elements. Is that really possible? Should I dive and study CSS more? Without matching, CSS would not help much, as the correction is needed in three dozen cases at most, and not blindly for all images. I could ponder using XSL or something else to post-process the HTML generated by Org, so circumventing the limitation. This would be adding an unwelcome layer of complexity. I like to perceive Org as a tool which much simplify my life! :-). Fran=C3=A7ois