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

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