W3C home > Mailing lists > Public > public-html-admin@w3.org > September 2013

[Bug 23157] New: XHTML: validator doesn’t check that Raw Text elements (style/script) match the constraints

From: <bugzilla@jessica.w3.org>
Date: Wed, 04 Sep 2013 17:48:54 +0000
To: public-html-admin@w3.org
Message-ID: <bug-23157-2495@http.www.w3.org/Bugs/Public/>

            Bug ID: 23157
           Summary: XHTML: validator doesn’t check that Raw Text elements
                    (style/script) match the constraints
    Classification: Unclassified
           Product: Validator (Nu)
           Version: unspecified
          Hardware: PC
               URL: http://www.w3.org/html/wg/drafts/html/master/scripting
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: General
          Assignee: mike+validator@w3.org
          Reporter: xn--mlform-iua@xn--mlform-iua.no
        QA Contact: www-validator-cvs@w3.org
                CC: mike@w3.org, public-html-admin@w3.org,

For *escapable* Raw text elements (textarea/title), the validator does a *good*



The validator blesses the above as valid, if it occurs in an HTML document,
whereas if it occurs inside XHTML, it stamps it as invalid. This is how it
should be!

However, for <script> and <style>, the story is different: Irrespective of HTML
or XHTML, the validator will use the the rules of HTML parsing and stamp the
following as valid:


Per the XML parser, the above <FOO> is an element. Thus: not text. Whereas the
content model of <script> and <style> is (some flavour of) text. Hence, the
above ought to be stampd as invalid, measured as XHTML against the HTML5

You are receiving this mail because:
You are on the CC list for the bug.
Received on Wednesday, 4 September 2013 17:48:56 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:37:34 UTC