W3C home > Mailing lists > Public > uri@w3.org > October 2010

Re: is it possible to handle an XML/HTML elements attribute via the URI?

From: Julian Reschke <julian.reschke@gmx.de>
Date: Thu, 28 Oct 2010 14:27:41 +0200
Message-ID: <4CC96C3D.2000500@gmx.de>
To: Matthew Millar <mattmill30@hotmail.com>
CC: austin.cheney@travelocity.com, uri@w3.org
On 28.10.2010 02:32, Matthew Millar wrote:
> Hi Austin,
> Thanks for the reply.
> The example I was giving, was how to change the direction of a specific
> paragraphs text, by specifying the paragraphs ID, aswell as the
> attribute you want to set/edit (dir) and the value you want to assign it
> ("ltr").
> See http://www.w3schools.com/tags/tag_p.asp - dir is a standard
> paragraph attribute, and ltr is an accepted value for the dir attribute.
> Essentially, I was hoping it would be possible to change an elements
> attributes, via the URI.
> This would be extremely useful, if you wanted to highlight a particular
> section of a page, or want a particular element to render/behave
> differently.
> For example, if could be used in conjunction with an embed element, for
> setting the quality attribute:
> http://domain/video.html#embed_element[quality]="high"
> Hope that makes more sense.
> ...

URIs + fragments are for addressing, not changing things.

If you want to highlight a part of an HTML page based on the fragment 
identifier, this seems to be a *styling* problem.

See <http://www.w3.org/TR/css3-selectors/#target-pseudo>.

Best regards, Julian
Received on Thursday, 28 October 2010 12:28:22 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:14 UTC