diff options
-rw-r--r-- | share/templates/en_US/error_messages.cfg | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/share/templates/en_US/error_messages.cfg b/share/templates/en_US/error_messages.cfg index 4cc68f6..9665e42 100644 --- a/share/templates/en_US/error_messages.cfg +++ b/share/templates/en_US/error_messages.cfg @@ -1224,12 +1224,20 @@ verbose <<.EOF. <div class="ve mid-247"> <p> - The sequence <FOO /> can be interpreted in at least two different - ways, depending on the DOCTYPE of the document. For example for HTML 4.01 - and earlier, the '/' terminates the tag <FOO (with an implied '>'). - However, since many browsers don't interpret it this way, even in the - presence of a "strict" DOCTYPE, it is best to avoid it completely in pure - HTML documents and reserve its use solely for those written in XHTML. + For the current document, the validator interprets strings like + <code class="inline"><FOO /></code> according to legacy rules that + break the expectations of most authors and thus causes confusing warnings + and error messages from the validator. This interpretation is triggered + by HTML 4 documents or other SGML-based HTML documents. To avoid the + messages, simply remove the "/" character in such contexts. NB: If you + expect <code class="inline"><FOO /></code> to be interpreted as an + XML-compatible "self-closing" tag, then you need to use XHTML or HTML5. + </p> + <p> + This warning and related errors may also be caused by an unquoted + attribute value containing one or more "/". Example: + <code class="inline"><a href=http://w3c.org>W3C</a></code>. + In such cases, the solution is to put quotation marks around the value. </p> </div> .EOF. |