2009/4/6 Ojan Vafai <[email protected]>: > On Fri, Apr 3, 2009 at 10:46 PM, Cameron McCormack <[email protected]> wrote: >> >> Ojan Vafai: >> > 2) Add a css or xpath expression to fragment identifiers. Tthe iframe >> > src can be set to http://foo.com#css(.foo #bar). Same as above >> > applies. If there's no match, it's a noop. If there is a match, it >> > scrolls the first one into view. >> >> Sounds like XPointer: >> >> http://www.w3.org/TR/xptr-framework/ > > Yes, it's a similar idea. XPointer seems focused on XML/XHTML, I'm not sure > what it would take to extend the spec to include HTML. In addition, I don't > really see the point of adding yet another element addressing scheme to the > web. XPath and CSS selectors are already there and familiar to developers.
Actually, XPointer is just the application of XPath in fragment identifiers of XML resources, but it is designed in a way that could allow a "css" scheme or anything else, if specified. Giovanni
