W3C home > Mailing lists > Public > www-validator-cvs@w3.org > January 2013

[Bug 20766] @lang on <html> seen as invalid if MIME = application/xhtml+xml, preset = HTML5 and parser = XML.

From: <bugzilla@jessica.w3.org>
Date: Fri, 25 Jan 2013 02:43:54 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-20766-169-u22fPpr8GY@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=20766

--- Comment #3 from Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no> ---
(1) A validation counterexample: http://tinyurl.com/bfwfjwf

    In the counter example (1), then
  * @lang has been deleted (actually: replaced with @data-lang)
  * <noscript> (which is invalid in XHTML5) has been added.
  # Result: It validates. 
  # The fact that <noscript> is accepted means (despite the weird
    non-acceptance of the @lang attribute) that it is the 
    HTML-conformance rules that are active, despite the XML parser.

(2) A counter-counterexample: http://tinyurl.com/akwuz2r

    In the counter-counterexample (2), then
  * Same code as in (1) is used, EXCEPT ...
  * … EXCEPT that there is an non-well-formed <hr>
  # Result: It doesn't validate due to the non-closed <hr>
  # The fact that it doesn't validate despite using a HTML5 preset
    is because it nevertheless is the XML parser that is used.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Friday, 25 January 2013 02:43:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 25 January 2013 02:43:59 GMT