W3C home > Mailing lists > Public > www-validator-cvs@w3.org > March 2012

[Bug 16210] New: Error in validaton of <style scoped>: It *is* allowed as child of <body>

From: <bugzilla@jessica.w3.org>
Date: Sat, 03 Mar 2012 01:02:30 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-16210-169@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16210

           Summary: Error in validaton of <style scoped>: It *is* allowed
                    as child of <body>
           Product: Validator (Nu)
           Version: unspecified
          Platform: PC
               URL: http://tinyurl.com/7edrjms
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: General
        AssignedTo: mike+validator@w3.org
        ReportedBy: xn--mlform-iua@xn--mlform-iua.no
         QAContact: www-validator-cvs@w3.org


Why does the validator not OK the following? Example:

<!DOCTYPE html><html><head><title></title></head><body><style
scoped>style+*{background:red}</style><p>abc

The error message explains that <style scoped> can be used:

]] where flow content is expected, but before any other flow content other than
inter-element whitespace, and not as the child of an element whose content
model is transparent.
Content model for element body:
Flow content.[[

But as the error message itself says: <body>'s content model is *not*
transparent. Hence, the spec does permit <style scope> to be the direct child
of <body>. 

Currently, the validator would OK the above example, if I had done <div><style
scope>/*foo*/</style></div>

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Saturday, 3 March 2012 01:02:32 UTC

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