From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Converting a string to valid XHTML id? Date: Wed, 1 Dec 2010 20:51:43 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1291233752 3040 80.91.229.12 (1 Dec 2010 20:02:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Dec 2010 20:02:32 +0000 (UTC) Cc: Ralf Mattes , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 01 21:02:27 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PNssk-0003Wt-Sr for ged-emacs-devel@m.gmane.org; Wed, 01 Dec 2010 21:02:27 +0100 Original-Received: from localhost ([127.0.0.1]:34214 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNssk-0007Nm-Bi for ged-emacs-devel@m.gmane.org; Wed, 01 Dec 2010 15:02:26 -0500 Original-Received: from [140.186.70.92] (port=56975 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNsin-0001ya-Dx for emacs-devel@gnu.org; Wed, 01 Dec 2010 14:52:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PNsim-0006H8-4x for emacs-devel@gnu.org; Wed, 01 Dec 2010 14:52:09 -0500 Original-Received: from mail-ey0-f169.google.com ([209.85.215.169]:42450) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PNsil-0006Gm-TX for emacs-devel@gnu.org; Wed, 01 Dec 2010 14:52:08 -0500 Original-Received: by eydd26 with SMTP id d26so17469009eyd.0 for ; Wed, 01 Dec 2010 11:52:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=ybwsooUilbQzwtUveZG02gqllXPMF6h6gACX16EkFbI=; b=xuVtcCPWuj2ZXx1Fq8QTxK/Jf52+FuiNISfY0hBKtQ/BzI5p97mqrKE4fgqpKpMiSa HV7LC2h45oLp81hpGxgfKx03bnCo86+6bUpGsWEjpFwIssAtB668w+2P9kTz824WUsIv 0EuPKwT85pdrWFyNgO0ZJoIJdGxxJjvNkVMnQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=gxvwJSnZ1sOHhO6OOzwOGmaTB7FM1JyirpoavalSNIeOpW6qvTiFedyhDrFZcsvARP YSi85p5hON/gecfz7H1oDyPretiCEHGq/6qsr0XcgSvRM10r3m/Tx9PDTQCbm1bdZNUr PhaBijO3dUn5amssRMoj0uiMPeI1GyaHFTPiE= Original-Received: by 10.213.15.139 with SMTP id k11mr4862154eba.97.1291233123737; Wed, 01 Dec 2010 11:52:03 -0800 (PST) Original-Received: by 10.213.29.8 with HTTP; Wed, 1 Dec 2010 11:51:43 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:133282 Archived-At: On Wed, Dec 1, 2010 at 4:51 PM, Stefan Monnier wrote: >>> collapsing two different strings to the same ID, resulting in >>> invalid html. > > I have no idea what those ids are for, but wouldn't a cryptographic hash > work as well? It is just the value of the id attribute, for example like this: