W3C home > Mailing lists > Public > www-validator-cvs@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: www-validator-cvs@w3.org
Message-ID: <bug-23157-169@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=23157

            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
                    -1.html#the-script-element
                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,
                    public-html-wg-issue-tracking@w3.org

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

Example:

     <textarea><foo/></textarea>

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:

   <script><FOO/></script>

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
specification.

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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:55 UTC