unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Jonathan Yavner <jyavner@member.fsf.org>
Subject: Handling invalid HTML
Date: Tue, 18 Oct 2005 11:05:55 -0400	[thread overview]
Message-ID: <200510181105.56063.jyavner@member.fsf.org> (raw)
In-Reply-To: <E1ERnvt-0006VR-9S@monty-python.gnu.org>

Juri Linkov writes:
> 1. The valid string delimiter for HTML attribute values is the
> quotation character.  However, some HTML files on the Web use
> apostrophes, e.g.
>    <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>
> The program that generates such non-standard meta headers is
> identified as 'Microsoft DHTML Editing Control' (no surprise).

http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.2
    "By default, SGML requires that all attribute values be delimited
    using either double quotation marks (ASCII decimal 34) or single
    quotation marks (ASCII decimal 39). ... In certain cases, authors
    may specify the value of an attribute without any quotation marks."

In XHTML the no-marks case was eliminated, but the use of 'apostrophes' 
is still valid.  There are many complaints one can make about 
Microsoft, but this isn't one of them.

--Jonathan

       reply	other threads:[~2005-10-18 15:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1ERnvt-0006VR-9S@monty-python.gnu.org>
2005-10-18 15:05 ` Jonathan Yavner [this message]
2005-10-19 15:59   ` Handling invalid HTML Juri Linkov
2005-10-20  4:54     ` Richard M. Stallman
2005-10-18  8:06 Juri Linkov
2005-10-19  2:43 ` Richard M. Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200510181105.56063.jyavner@member.fsf.org \
    --to=jyavner@member.fsf.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).