W3C home > Mailing lists > Public > public-html@w3.org > May 2009

Re: <style @src>

From: G. Wade Johnson <gwadej@anomaly.org>
Date: Tue, 5 May 2009 17:49:00 -0500
To: Doug Schepers <schepers@w3.org>
Cc: Jonas Sicking <jonas@sicking.cc>, "public-html@w3.org" <public-html@w3.org>, www-svg <www-svg@w3.org>
Message-ID: <20090505174900.6aaa5619@sovvan>
Sticking my nose (and opinion) in again.

On Tue, 05 May 2009 16:38:47 -0400
Doug Schepers <schepers@w3.org> wrote:

> Hi, Jonas-
> 
> Jonas Sicking wrote (on 5/5/09 2:39 PM):
> > On Mon, May 4, 2009 at 8:49 PM, Doug Schepers<schepers@w3.org>
> > wrote:
> >>  Henri Sivonen wrote (on 5/4/09 1:51 PM):
> >>>>  Jonas Sicking wrote (on 5/1/09 4:41 AM):
> >>>>>
> >>>>>  Gecko supports the @null:src attribute on<html:style>
> >>>>> elements.
> >>>
> >>>  The code for this feature is bogus in the way Anne described.
> >>>  https://bugzilla.mozilla.org/show_bug.cgi?id=484200
> >>
> >>  That actually isn't testing the interesting aspect of<style
> >>  @scr="somefile.css">; what's interesting is if you could
> >> reference an external stylesheet that way... which you currently
> >> can't in FF, Opera, or Safari.
> >>
> >>  I think it would be nice to have this sort of functionality in
> >> both SVG and HTML.  Not critical, but nice.
> 
> Probably not.  I prefer the semantics of <style src="somefile.css">,
> and it parallels the same functionality of <script
> src="somefile.js">.  I think it would be more intuitive for newbies,
> but doesn't confer huge benefits (that I can see right now).  Then
> again, it also doesn't have a high cost, and would make the language
> more consistent.

I agree that <style src> makes more sense to me as a developer. But, I
have to admit to some intriguing ideas mentioned for other semantics of
the <link/> tag.

I can see good arguments for either, and as a very wise developer once
told me "if both choices are good, see if you can avoid choosing".

> In fact, there are lots of bits of duplicate or near-duplicate 
> functionality in HTML, SVG, and other languages.

Although adding duplication can add confusion, it is sometimes useful
for more expressive results.<shrug/>

G. Wade
-- 
There are 2 possible outcomes: If the result confirms the hypothesis,
then you've made a measurement. If the result is contrary to the
hypothesis, then you've made a discovery.                        --
Enrico Fermi
Received on Tuesday, 5 May 2009 22:49:54 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:03 UTC