Further improvements to "NET-enabling start-tag..." explanation, thanks to Leif Halvard Silli and Jukka K. Korpela.
authorVille Skyttä <ville.skytta@iki.fi>
Mon, 28 Nov 2011 22:52:37 +0200
changeset 32673c6a2bf16aac
parent 3266 b78fcec4e063
child 3268 3ff5b39956c5
Further improvements to "NET-enabling start-tag..." explanation, thanks to Leif Halvard Silli and Jukka K. Korpela.
share/templates/en_US/error_messages.cfg
     1.1 --- a/share/templates/en_US/error_messages.cfg	Mon Nov 28 22:49:31 2011 +0200
     1.2 +++ b/share/templates/en_US/error_messages.cfg	Mon Nov 28 22:52:37 2011 +0200
     1.3 @@ -1224,12 +1224,20 @@
     1.4    verbose <<.EOF.
     1.5    <div class="ve mid-247">
     1.6      <p>
     1.7 -      The sequence &lt;FOO /&gt; can be interpreted in at least two different
     1.8 -      ways, depending on the DOCTYPE of the document. For example for HTML 4.01
     1.9 -      and earlier, the '/' terminates the tag &lt;FOO (with an implied '&gt;').
    1.10 -      However, since many browsers don't interpret it this way, even in the
    1.11 -      presence of a "strict" DOCTYPE, it is best to avoid it completely in pure
    1.12 -      HTML documents and reserve its use solely for those written in XHTML.
    1.13 +      For the current document, the validator interprets strings like
    1.14 +      <code class="inline">&lt;FOO /&gt;</code> according to legacy rules that
    1.15 +      break the expectations of most authors and thus causes confusing warnings
    1.16 +      and error messages from the validator. This interpretation is triggered
    1.17 +      by HTML 4 documents or other SGML-based HTML documents. To avoid the
    1.18 +      messages, simply remove the "/" character in such contexts. NB: If you
    1.19 +      expect <code class="inline">&lt;FOO /&gt;</code> to be interpreted as an
    1.20 +      XML-compatible "self-closing" tag, then you need to use XHTML or HTML5.
    1.21 +    </p>
    1.22 +    <p>
    1.23 +      This warning and related errors may also be caused by an unquoted
    1.24 +      attribute value containing one or more "/". Example:
    1.25 +      <code class="inline">&lt;a href=http://w3c.org&gt;W3C&lt;/a&gt;</code>.
    1.26 +      In such cases, the solution is to put quotation marks around the value.
    1.27      </p>
    1.28    </div>
    1.29  .EOF.