[whatwg] cross-domain scrollIntoView on frames and iframes

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:
>>
>> ?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

Received on Monday, 6 April 2009 11:33:10 UTC