From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Shmakov Newsgroups: gmane.emacs.devel Subject: [OT] HTML5 Date: Tue, 23 Dec 2014 10:55:27 +0000 Message-ID: <873886hbz4.fsf_-_@violet.siamics.net> References: <87388bnzha.fsf@newcastle.ac.uk> <87k31mdbhe.fsf@uwakimon.sk.tsukuba.ac.jp> <87tx0qiv45.fsf@fencepost.gnu.org> <87h9wqd3i5.fsf@uwakimon.sk.tsukuba.ac.jp> <87h9wqimf0.fsf@fencepost.gnu.org> <87y4q1fekv.fsf@fencepost.gnu.org> <87k31kga2y.fsf@fencepost.gnu.org> <87r3vsdps7.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1419332152 4093 80.91.229.3 (23 Dec 2014 10:55:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Dec 2014 10:55:52 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 23 11:55:47 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y3N7z-0008RD-CN for ged-emacs-devel@m.gmane.org; Tue, 23 Dec 2014 11:55:47 +0100 Original-Received: from localhost ([::1]:43999 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3N7y-0004fW-Ob for ged-emacs-devel@m.gmane.org; Tue, 23 Dec 2014 05:55:46 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3N7u-0004e4-DC for emacs-devel@gnu.org; Tue, 23 Dec 2014 05:55:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y3N7s-0001Jm-U9 for emacs-devel@gnu.org; Tue, 23 Dec 2014 05:55:42 -0500 Original-Received: from fely.am-1.org ([2a01:4f8:d15:1b86::2]:52063) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3N7s-0001Iw-Cr for emacs-devel@gnu.org; Tue, 23 Dec 2014 05:55:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=oS6fWo0KvG6cujEvanD9K7MibthlJp88zsgjUFyjicQ=; b=VwOhC/HJQd9gaWujmvgn+Y8x7o2OWkADq1SJm/zxR23mNFExwJH1ClCEmyWETsQ2uEPPeFVV8Bh5IeM5AlRv3mv5oXcpeXjQsm1bAIPI6eTtGzgURVzpa41zb90lHV2rjMatSCZE8mXhV6LFsqg/NuhYUb8eI4JhOLrEXP4ez4Y=; Original-Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1Y3N7n-0001Nl-6G for emacs-devel@gnu.org; Tue, 23 Dec 2014 10:55:35 +0000 Original-Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1Y3N7g-0001jl-47 for emacs-devel@gnu.org; Tue, 23 Dec 2014 17:55:28 +0700 Mail-Followup-To: emacs-devel@gnu.org In-Reply-To: (Lennart Borgman's message of "Tue, 23 Dec 2014 11:15:53 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a01:4f8:d15:1b86::2 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:180555 Archived-At: >>>>> Lennart Borgman writes: >>>>> On Dec 23, 2014 10:28 AM, "Steinar Bang" wrote: >>>>> Yuri Khan : >>> I=E2=80=99m a firm believer in closing tags explicitly and properly. >>> Especially when the markup is not hand-written but generated. >>> There=E2=80=99s just no excuse for generating invalid or sloppy markup. >> +1 > In html5 there is also single tags (whatever they call them, I don't > remember right now). In HTML5, they=E2=80=99re called /void elements./ [1] [=E2=80=A6] Void elements only have a start tag; end tags must not be specified for void elements. [=E2=80=A6] > The preferred way is to write
instead of
. The HTML5 TR is mainly concerned with document /models/ (rather than document /markup/), and explicitly allows for /two/ different representations (that is: different markup languages, essentially) of such models, =E2=80=93 HTML and XHTML [2]: There are various concrete syntaxes that can be used to transmit resources that use this abstract language, two of which are defined in this specification. In HTML, /both/ of the above are the valid representations of a void element. In XHTML, the valid representations for a void =E2=80=98hr=E2=80=99 element would be
and
. The
form comes useful if, for some reason, you have to make a single file processable by both HTML and XML readers. (For the same reason, HTML5 explicitly allows the use of the otherwise meaningless xml:lang and xmlns attributes with the HTML syntax.) There=E2=80=99s no other use or preference regarding these representations. > Btw, this is something html5 indentation code must take care of. It > must have a list of those tags to be able to do that, of course. Yes. [1] http://www.w3.org/TR/html5/syntax.html#elements-0 [2] http://www.w3.org/TR/html5/introduction.html#html-vs-xhtml --=20 FSF associate member #7257 http://boycottsystemd.org/ =E2=80=A6 3013 B6A0= 230E 334A