[Webkit-unassigned] [Bug 108537] window[id] evaluates to iframe browsing context instead of element itself
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jan 31 15:16:30 PST 2013
https://bugs.webkit.org/show_bug.cgi?id=108537
--- Comment #1 from Matthew Dempsky <mdempsky at google.com> 2013-01-31 15:18:32 PST ---
Actually, the bug seems to be that the iframe's browsing context is being set to the iframe element's id attribute, even though the HTML spec explicitly states only the name attribute should be used:
"""
The name attribute, if present, must be a valid browsing context name. The given value is used to name the nested browsing context. When the browsing context is created, if the attribute is present, the browsing context name must be set to the value of this attribute; otherwise, the browsing context name must be set to the empty string.
Whenever the name attribute is set, the nested browsing context's name must be changed to the new value. If the attribute is removed, the browsing context name must be set to the empty string.
"""
--- http://www.whatwg.org/specs/web-apps/current-work/multipage/the-iframe-element.html#attr-iframe-name
It's possible to confirm that document.getElementById('fr').contentWindow.name evaluates to 'fr', although document.getElementById('fr').getAttribute('name') evaluates to null.
Also, even after executing document.getElementById('fr').setAttribute('name', 'foo'), document.getElementById('fr').contentWindow.name continues to evaluate to 'fr' instead of 'foo', contrary to the quoted spec above.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list