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

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