[Bug 13498] New: document.readyState should return to 'loading' on navigation

http://www.w3.org/Bugs/Public/show_bug.cgi?id=13498

           Summary: document.readyState should return to 'loading' on
                    navigation
           Product: HTML WG
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: hallvord@opera.com
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


Opera has problems with uploading attachments on T-Online.de's webmail, it
boils down to an issue that might have some relevance for HTML5's definition of
the readyState property / document readiness calculation ( 
http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#current-document-readiness
). 

What happens in IE is that when a window is being navigated away from the
current document, that document's readyState changes from 'complete' to
'loading'. (It would have made more sense in this case to have 'readyState' as
a property on the window, but that's a sin of designers past..).

HTML5 has not noticed this, it seems (or chosen to ignore it?), so the spec
as-written seems to asssume that readyState won't ever switch from complete
back to loading. The site sniffs for WebKit-based browsers and Firefox, because
they don't emulate IE on this point.

Now that we've realised IE does some extra stuff and found an important site
depending on it. I think switching back to 'loading' when some load is pending
makes sense.

(Originally posted on public-html:
http://lists.w3.org/Archives/Public/public-html/2011Jul/0199.html )

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Monday, 1 August 2011 10:36:40 UTC