From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Popineau Subject: Re: ox-html export bug Date: Fri, 8 Sep 2017 20:52:10 +0200 Message-ID: References: <87mv66xvlr.fsf@nicolasgoaziou.fr> <0463b497-7f6b-b5c2-005b-25412ba80fba@gmail.com> <8760cto9gz.fsf@gmx.us> <87bmmlwkzp.fsf@nicolasgoaziou.fr> <889ae077-40da-355b-9574-e9b73127910e@gmail.com> <87y3ppumda.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f403045d6d043e56ad0558b21409" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqOOH-0003Uu-Na for emacs-orgmode@gnu.org; Fri, 08 Sep 2017 14:52:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dqOOG-0002sB-LG for emacs-orgmode@gnu.org; Fri, 08 Sep 2017 14:52:33 -0400 Received: from mail-qt0-x235.google.com ([2607:f8b0:400d:c0d::235]:36175) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dqOOG-0002qX-G1 for emacs-orgmode@gnu.org; Fri, 08 Sep 2017 14:52:32 -0400 Received: by mail-qt0-x235.google.com with SMTP id s18so6758668qta.3 for ; Fri, 08 Sep 2017 11:52:31 -0700 (PDT) In-Reply-To: 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" To: kadal Cc: "emacs-orgmode@gnu.org" , Nicolas Goaziou --f403045d6d043e56ad0558b21409 Content-Type: text/plain; charset="UTF-8" 2017-09-08 19:40 GMT+02:00 kadal : > On 09/08/2017 10:32 AM, Nicolas Goaziou wrote: > >> kadal writes: >> >> Seems like the second one should export to either "

" >>> or "

". >>> >> >> Is it valid HTML? >> >> Regards, >> >> This SO thread has confusing answers: https://stackoverflow.com/ques > tions/192048/can-an-html-element-have-multiple-ids#192066 > > Looks like the second option will work. Not valid according to : https://www.w3.org/TR/html5/syntax.html#attributes-0 "There must never be two or more attributes on the same start tag whose names are an ASCII case-insensitive match for each other." > That said, the first option is better because if I'm setting a CUSTOM_ID, > that's what should be used for internal links... > > I agree with that. Ideally, if you set a CUSTOM_ID, then it should replace the default org generated id. Regards, Fabrice --f403045d6d043e56ad0558b21409 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


2017-09-08 19:40 GMT+02:00 kadal <kadalcalypse@gmail.com><= /span>:
On 09/08/2017 10:32 AM, Nicolas Goazi= ou wrote:
kadal <kadal= calypse@gmail.com> writes:

Seems like the second one should export to either "<h2 id=3D"m= y-name">"
or "<h2 id=3D"my-name" id=3D"orge4e91c4">&qu= ot;.

Is it valid HTML?

Regards,

This SO thread has confusing answers: https://stackoverflow.com/questions/192048/ca= n-an-html-element-have-multiple-ids#192066

Looks like the second option will work.

Not= valid according to :


"There must never be t= wo or more attributes on the same start tag whose names are an ASCII case-i= nsensitive match for each other."
=C2=A0
That said, the first option is bet= ter because if I'm setting a CUSTOM_ID, that's what should be used = for internal links...


I agree with that. Ideally, if you set= a CUSTOM_ID, then it should replace the default org generated id.

Regards,

Fabrice
--f403045d6d043e56ad0558b21409--