dseif / slide-drive

Slideshow using audio/video to drive content
45 stars 9 forks source link

Slide Permalink Is Not Exposed Anywhere if replaceState Is Not Supported #50

Open banksJeremy opened 12 years ago

banksJeremy commented 12 years ago

The Butter editor is unusable in IE9, but the only issue I could find in exported HTML-only presentations was this.

The deck.hash.js plugin only updates the current URL when switching slides if the history.replaceState function is available. (It will be in IE10, but it's not in IE9.) Otherwise, it only updates the permalink displayed on the page.

The issue is that we don't have a permalink displayed on the page anywhere, so the permalink of the current slide isn't exposed anywhere for IE9 users. The plugin expects us to have one, and it will hide it for browsers that support replaceState.

We should probably just add a visible link, but I was thinking about the problem of getting the same behaviour in IE9.

Presumably they're insisting on replaceState because they don't want to pollute the browser history with slides. I think it would be possible to get the expected changing URL in IE9 without breaking the back button, at the expense of having three events listed in the history.