Re: Why is the style tag restricted to the head?

[Thu, 8 Aug 2002 17:22:29 -0400] Joshua Prowse:
>The main reason that I'd like something like this is because:
>- I don't have access to the <head> of my documents.  For example, when I'm
>posting on a UBB-style bulletin board or when I'm using a blogger tool I'd like
>to be able to modify document style without being restricted to inline style=""
>elements that don't allow for selectors.
>- and Javascript syntax is clumsy for changing styles

Ah.
Then I completely missed the point of what you wanted and why.
Kynn's concept, though, would be exactly what you need, for essentially the
same reasons he says he'd like it:

||  Why would you want to do this?  Because that way you can take any part
||  of the document and have specific styles that apply to it.  You can yank
||  out the second <div> and have it "work correctly" when you paste it into
||  another document, but you can't do that with style tags in the head of
||  the page.

Knowing nothing about SGML (on which I think HTML and XML are still
supposed to be based), I wonder if that concept would cause a problem.
The idea would be to modify the definitions of "block" and "inline" data
such that each could include one or more <STYLE>...</STYLE> elements
and/or <LINK REF=STYLESHEET> tags immediately after the opening tag of the
element that includes the block or inline data.  The "scope" of the style
rules would include all descendants of the element that directly contains
the rules (but --- I think --- not the containing element itself).


I guess this is really irrelevant here, though... the idea would need to be
pitched to the HTML/XML working groups.  The CSS specs wouldn't change.
-- 
Randall Joseph Fellmy aka Randy@Coises.com

Received on Thursday, 8 August 2002 17:55:56 UTC