W3C home > Mailing lists > Public > www-html@w3.org > December 2008

Re: Proposal for small enhancement

From: Andrei Eftimie <k3liutzu@gmail.com>
Date: Fri, 5 Dec 2008 16:11:33 +0200
Message-ID: <fd7a33700812050611t350a37ffn834f6a3f5e953d48@mail.gmail.com>
To: w3-html <www-html@w3.org>

> myfile.css:
>
> i1 {</td></tr><tr><td><img src="icon1.jpg" valign="top"/></td><td>}
> i2 {</td></tr><tr><td><img src="icon2.jpg" valign="top"/></td><td>}
> e {<r src="otherfile.html"/>}

You are mixing Structure with Style by adding markup into CSS. You can
add content from CSS right now (altough it does not work in every UA)
with
p { content: 'here goes your content that replaces the actual content"; }

CSS should not be allowed to manipulate the DOM. You have Javascript for that.


> If accepted and implemented, for authors, it simplifies a lot the work: if there is a need to change a certain thing in the replaced paragraph, it is done only once, in the definition. Not having this feature
> means going through all the affected files and operating the change

You could use a database and don't repeat the same information there,
and retrieve it where you need it

I't not sure how much bandwidth this could reduce. My guess is
insignificant. In your example you have an image. The actual image is
retrieved only once. The reference to that image is tiny.

-- 
Andrei Eftimie

+40 766 745 235

Web Developer
http://www.designpunct.ro

http://www.eftimie.com
Received on Friday, 5 December 2008 14:12:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 5 December 2008 14:12:11 GMT