From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Graham Hannington" Newsgroups: gmane.emacs.help Subject: Re: On-the-fly validation of (X)HTML5 using the v.Nu REST API Date: Fri, 1 Apr 2016 12:50:50 +0800 Message-ID: References: <87mvpey1lg.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1459486286 26275 80.91.229.3 (1 Apr 2016 04:51:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Apr 2016 04:51:26 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 01 06:51:13 2016 Return-path: Envelope-to: geh-help-gnu-emacs@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 1alr3A-0003ti-6T for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Apr 2016 06:51:12 +0200 Original-Received: from localhost ([::1]:35974 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alr38-0001NB-NW for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Apr 2016 00:51:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36819) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alr2y-0001N3-4w for help-gnu-emacs@gnu.org; Fri, 01 Apr 2016 00:51:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1alr2t-0005Ak-Mz for help-gnu-emacs@gnu.org; Fri, 01 Apr 2016 00:51:00 -0400 Original-Received: from cluster-k.mailcontrol.com ([116.50.57.190]:38642) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alr2t-0005Ab-2W for help-gnu-emacs@gnu.org; Fri, 01 Apr 2016 00:50:55 -0400 Original-Received: from corax.fundi.priv (fundi.com.au [116.212.215.58] (may be forged)) by rly04k.srv.mailcontrol.com (MailControl) with ESMTP id u314ol1p007042; Fri, 1 Apr 2016 05:50:48 +0100 In-Reply-To: <87mvpey1lg.fsf@debian.uxu> X-KeepSent: 3A3E5F86:0BBA1934-48257F88:0016E6D7; name=$KeepSent; type=4 X-Mailer: IBM Notes Release 9.0 March 08, 2013 X-Disclaimed: 41447 X-Scanned-By: MailControl 44278.1202 (www.mailcontrol.com) on 10.75.0.114 X-detected-operating-system: by eggs.gnu.org: Windows NT kernel [generic] [fuzzy] X-Received-From: 116.50.57.190 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:109697 Archived-At: Hi Emanuel, Re: > I haven't heard of XHTML for years. XHTML lives on as the XML serialization of HTML5. >From the current W3C Editor's draft of HTML 5.1, and also the WHATWG HTML= =20 Living Standard: > HTML vs XHTML > This specification defines an abstract language ... > There are various concrete syntaxes that can be used to transmit=20 resources that use this abstract language, > two of which are defined in this specification. ... > The first such concrete syntax is the HTML syntax. > The second concrete syntax is the XHTML syntax, which is an application= =20 of XML. at: http://w3c.github.io/html/introduction.html#html-vs-xhtml and: https://html.spec.whatwg.org/multipage/introduction.html#html-vs-xhtml Note this from WHATWG: > For a number of years, both [W3C and WHATWG] groups then worked=20 together. > In 2011, however, the groups came to the conclusion that they had=20 different goals: > the W3C wanted to publish a "finished" version of "HTML5", > while the WHATWG wanted to continue working on a Living Standard for=20 HTML, > continuously maintaining the specification rather than freezing it in a= =20 state with known problems, > and adding new features as needed to evolve the platform. > > Since then, the WHATWG has been working on this specification (amongst=20 others), > and the W3C has been copying fixes made by the WHATWG into their fork of= =20 the document > (which also has other changes). at: https://html.spec.whatwg.org/multipage/introduction.html#history-2 Re: > And what I heard then, the W3C disencouraged the use of it in favor of=20 HTML5. Could you please point me to the URL of a web page where the W3C does=20 this? Re: > how would one benefit from on-the-fly validation? One example: validation errors are caught as you type them, so you don't=20 end up with a document that is riddled with errors that you only find out= =20 about when you save. This also depends on personal preference and particular circumstances:=20 sometimes I prefer on-the-fly, sometimes not. With that Atom package I mentioned, you can choose to validate either on=20 the fly or only when you save. Either way - on the fly or only when you save - validation is integrated=20 with editing: the editor highlights the validation errors in situ. You=20 don't have to run a validation report outside of the editor. Re: > For HTML, I use validate(1), the "Offline HTMLHelp.com Validator", which= =20 is in the Debian repos pack wdg-html-validator. Worth checking out! If I go to: http://www.htmlhelp.com/tools/validator/direct.html.en and then replace the with: the validator responds: > Document Checked > Character encoding: ISO-8859-1 > Level of HTML: Unknown > > Errors and Warnings > Line 1, character 15: > > Error: no internal or external document type declaration subset; will=20 parse without validation How do you (by which I mean: you, Emanuel) validate HTML5? Regards, Graham Hannington Fundi Software Pty Ltd 2016 ABN 89 009 120 290 This message has been scanned for malware by Websense. www.websense.com