[whatwg] Session History and onpopstate coupled with iframes

Dear whatwg users,


I have recently tried using HTML5's pushState() and window.onpopstate for
my website.
They do work and I quite like the functionalities.

However, recently while working on a series of webpages which incorporate
iframe elements,
I found that the altering of iframe locations seemed to alter history as
well.
When having changed the 'src' attributes of my iframes, I found that my
browsing history became flooded with entries from my current page.
(Used browsers: Firefox, Chrome)

I understand that as mentioned in
http://dev.w3.org/html5/spec/Overview.html#history-notes,
iframe history is kept track of, but what puzzles me is why the default
implementation, (which I realise is a work-in-progress),
has been done so that one cannot alter these automatic pushState's or
suppress them.

In fact, I have a feeling that such entries into the browsing history
should not be exposed to the user by default.
I realise that I am in no way experienced enough to question the decisions
which have been made,
but I find this default behaviour odd as it is preventing me from doing two
jobs at once:
1. Control basic history
2. Alter iframe attributes

If there exists methods which I can use and I have therefore caused
un-necessary trouble,
I do apologise and ask cordially for the solution.

Thank you for your attention.

Best regards,
-- 
*Seon Wook Park*
Email: seon.wook at swook.net
Site: http://www.swook.net

Received on Sunday, 27 November 2011 11:21:04 UTC