– zzzzBov May 01 '15 at 13:53

  • @zzzzBov – user1360809 May 01 '15 at 14:59
  • 1 Answers1

    3

    From the front page of the document you linked to:

    This document has been discontinued and is only made available for historical purposes. For an up to date reference on HTML elements (and more) please consult Web Platform Docs.

    Some draft versions of HTML 5 allowed style elements in the body under certain conditions.

    There were various problems with the design of that functionality and it did not make it into the final version of HTML 5.

    Quentin
    • 914,110
    • 126
    • 1,211
    • 1,335
    • I can never keep the specs straight. AFAICT [the w3c spec still allows the ` – zzzzBov May 01 '15 at 13:52
    • 1
      @zzzzBov — The w3c spec you quote is the HTML 5.1 **working draft**, not the current stable HTML 5 spec. WHATWG is a "living" standard so isn't a safe reference. – Quentin May 01 '15 at 13:57
    • @Quentin, so which spec *is* the safe one? – zzzzBov May 01 '15 at 14:04
    • [ah, I think I found it](http://www.w3.org/TR/html5/single-page.html#the-style-element). As I said before, I can never keep the specs straight. IMO, the WHATWG spec being a living standard doesn't make it unsafe, it makes it more in touch with the current reality of the browser landscape. – zzzzBov May 01 '15 at 14:08
    • 1
      @zzzzBov — http://caniuse.com/#feat=style-scoped - the living spec is very aspirational, it defines things with practically no support and which are subject to change. – Quentin May 01 '15 at 14:13
    • @Quentin, [https://github.com/PM5544/scoped-polyfill](https://github.com/PM5544/scoped-polyfill) the web community is pretty good at filling in the gaps to give browsers a chance to catch up. – zzzzBov May 01 '15 at 14:28