[Bug 18395] New: Encoding Sniffing Algorithm: Overrides apply to nested browsing contexts

https://www.w3.org/Bugs/Public/show_bug.cgi?id=18395

           Summary: Encoding Sniffing Algorithm: Overrides apply to nested
                    browsing contexts
           Product: HTML WG
           Version: unspecified
          Platform: PC
               URL: http://dev.w3.org/html5/spec/Overview#encoding-sniffin
                    g-algorithm
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec
        AssignedTo: ian@hixie.ch
        ReportedBy: xn--mlform-iua@xn--mlform-iua.no
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


Proposal: Extend the encoding sniffing algorithm with a new
          step after the current first step (about user
          overriding), like so:

     #. If the current document lives in the 'nested browsing
        context'[1] of a document in a 'parent browsing context'
        whose encoding has been overridden at the request of the
        user, then return the encoding of the parent browsing
        context, and abort these steps. [My note: Doesn't apply if
        the current doc is XML, [see bug #1], or if it contains the
        BOM, confer Bug 17810/Bug 15359.]

Justification: 

    Currently, when a user agent obeys a user's request to override the 
encoding of a parent browsing context, then [NB: I did not test the 
relevant version of IE yet: IE8/IE9/IE10], unless the document of the 
child browsing context contains a BOM or [see bug #1] the document is 
an XML document, then they all apply the encoding of the parent 
browsing context to the child browsing context as well.

More data in my related blog post.[2]

[1] http://dev.w3.org/html5/spec/Overview#nested-browsing-context
[2] http://målform.no/blog/white-spots-in-html5-s-encoding-sniffing-algorithm

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 25 July 2012 12:28:53 UTC