Re: why a different tag for SVG images?
- From: "Alan J. Flavell" <flavell@xxxxxxxxxxxxxxxxx>
- Date: Fri, 7 Apr 2006 00:33:25 +0100
On Thu, 6 Apr 2006, phil-news-nospam@xxxxxxxx wrote:
On Tue, 4 Apr 2006 20:13:41 +0100 Alan J. Flavell <flavell@xxxxxxxxxxxxxxxxx> wrote:
| On Tue, 4 Apr 2006, phil-news-nospam@xxxxxxxx wrote:
|
|> Why even make a new one? Why not have left <img> to do the same job for
|> all object types, and <object> be an equivalent.
|
| Heavens, no! <img ...> is - and always was - badly designed. Came
| from the house of instant gratification, not from the department of
| fundamentally sound.
|
| The ill-fated HTML/3.0 draft had already recognised that, and tried to
| introduce a <fig...> element to replace it. That, in due course,
| became the W3C part of the <object...> element. Which could have been
| used to define nested variants of an object, falling-back finally to
| properly formatted text (something which the wretched img tag's "alt"
| attribute is incapable of doing).
|
| That is, if the f*up fairy hadn't intervened, and gifted the W3C
| <object> element with the kiss of death from a proprietary vendor,
| making it essentially useless in a general web context.
So go back to <img> and fix it up.
Sorry, there seems to be some kind of misunderstanding here...
One basic step is to specify that whatever content is coming in as
specified in the src= if that content is recognized, render it as
such.
I'm not talking about whatever is at the other end of the src=
reference - but about the IMG element itself:
<!ELEMENT IMG - O EMPTY -- Embedded image -->
<!ATTLIST IMG
%attrs; -- %coreattrs, %i18n, %events --
src %URI; #REQUIRED -- URI of image to embed --
alt %Text; #REQUIRED -- short description --
longdesc %URI; #IMPLIED -- link to long description
(complements alt) --
name CDATA #IMPLIED -- name of image for scripting --
height %Length; #IMPLIED -- override height --
width %Length; #IMPLIED -- override width --
usemap %URI; #IMPLIED -- use client-side image map --
ismap (ismap) #IMPLIED -- use server-side image map --
>
You can't change that (particularly, the EMPTY content model) without
*severe* compatibility issues.
The question of what formats are supported at the far end of src= is a
different matter. Way back, for example, some browsers supported
postscript as an IMG format, but somehow that never became
sufficiently widespread to be useful. And there's no way with
<img...> that you can do anything about that, really - in theory you
could implement content negotiation, but there are enough browsers
which tell lies in their Accept: header when retrieving an <img
src=...> to make that problematic.
You can specify width and height already. Add more specifiers
to the tag if needed.
This is beside the point, I'm afraid. It isn't about adding
*attributes* (we've got enough, or more than enough, of those
already), but about /content/ for the element.
Just make it work with every known type of file
that can be rendered, including HTML itself.
I'm sorry, but it's simply not feasible to mandate all clients to
support all conceivable formats. Some will do more, and some will do
less: that's the way of the world (wide web) - SCNR.
In the absence of well-supported content negotiation (which *can* work
well in some contexts, but here I think in practice it's a lost
cause), I think the nested object approach is the nearest we've got to
a viable solution...
....with the final fallback being a properly marked-up text-mode
content body, which is *far* more useful than the desperate
limitations of an alt attribute value string.
SVG is functionally no different than any image format. It should be
just as acceptable anywhere any other image format is.
Indeed, and (out of the currently available W3C markups) that *should*
be the <object...> markup, with something useful in its element
content - instead of the fundamentally misconceived <img...> markup
with its EMPTY content model. As I've been trying to say already.
Thus, if a .jpg or a .png could be used for a background image, then
there is no reason a .svg cannot be used for the same if the browser
has .svg support active.
Background images are presentation, not content, and, as such, are not
really the business of the HTML authoring group. Whatever conclusion
you or I might agree for those, would not necessarily be relevant to
substantive content, which is the business of HTML.
[...]
| I see what you're getting at, but that isn't how it's been
| defined.
Again, definitions shouldn't stand in the way of flexibility.
Otherwise they are stupid definitions.
And <img...> seems to fit that description!
ttfn
.
- Follow-Ups:
- Re: why a different tag for SVG images?
- From: phil-news-nospam
- Re: why a different tag for SVG images?
- References:
- why a different tag for SVG images?
- From: phil-news-nospam
- Re: why a different tag for SVG images?
- From: Spartanicus
- Re: why a different tag for SVG images?
- From: phil-news-nospam
- Re: why a different tag for SVG images?
- From: Alan J. Flavell
- Re: why a different tag for SVG images?
- From: phil-news-nospam
- why a different tag for SVG images?
- Prev by Date: Re: Form problem and Firefox
- Next by Date: Re: Multiple-level Table of Contents
- Previous by thread: Re: why a different tag for SVG images?
- Next by thread: Re: why a different tag for SVG images?
- Index(es):
Relevant Pages
|