Re: <style @src>

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:45 UTC