[whatwg] cross-domain scrollIntoView on frames and iframes
scampa.giovanni at gmail.com
Mon Apr 6 11:33:10 PDT 2009
2009/4/6 Ojan Vafai <ojan at chromium.org>:
> On Fri, Apr 3, 2009 at 10:46 PM, Cameron McCormack <cam at mcc.id.au> 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:
> 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.
More information about the whatwg