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: Matthew Millar <mattmill30@hotmail.com>
Date: Thu, 28 Oct 2010 01:32:41 +0100
Message-ID: <SNT116-W38651F02D4A6BF32F935E5C4440@phx.gbl>
To: <austin.cheney@travelocity.com>, <uri@w3.org>

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:


Hope that makes more sense.


Matthew Millar

From: Austin.Cheney@travelocity.com
To: mattmill30@hotmail.com; uri@w3.org
Date: Wed, 27 Oct 2010 11:37:30 -0500
Subject: RE: is it possible to handle an XML/HTML elements attribute via the URI?



URI is only an addressing means.  In URI # is
a hierarchy character.



Your question appears to be more focused on the processing of
the HTTP URI scheme.  Unfortunately there is not an RFC dedicated to the
HTTP URI scheme as RFC2616 is more concerned with the application processing requirements
of HTTP.  If you need this functionality for proprietary use you can
create a privately used URI scheme that does anything your applications are
willing to consume.


If you need to address specific functionality for public
consumption across the web I would suggest you reexamine your example as it is
not compatible with HTML.  In HTTP URI scheme the # is a
pointer to a section denoted with an id value and in HTML the id is an
attribute.  In HTML attributes do not have attributes of their own. 
That said, your example is unclear.  Please specify your example next time
with code whether HTML or some other syntax.




Austin Cheney, Travelocity User Experience



From: uri-request@w3.org
[mailto:uri-request@w3.org] On Behalf Of Matthew Millar

Sent: Wednesday, October 27, 2010 11:22 AM

To: uri@w3.org

Subject: is it possible to handle an XML/HTML elements attribute via the



I'm wondering whether its possible to handle a page element, via the URI?

I'd like to handle an elements attribute, based on its ID.

Like an expansion of the #ID URI feature.

I'm hoping for something like:


In the example above, i would want to add the "dir" attribute, with a
value of "ltr", to the element whose id is "ID"

If its not currently possible, could it be considered for a future standard, or
an extension to the current URI standard.


Matthew Millar

Received on Thursday, 28 October 2010 00:33:16 UTC

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