Re: [webkit-dev] DOM methods that affect [[Prototype]]

2013-01-25 Thread Anne van Kesteren
On Fri, Jan 25, 2013 at 12:21 AM, Geoffrey Garen gga...@apple.com wrote:
 Anne, can you help me get those comments sent to the w3 list? I sent them 
 myself, but they seem to be held up or bounced?

Hey, I think they did make it, and Boris replied:
http://lists.w3.org/Archives/Public/www-dom/2013JanMar/0068.html

Unfortunately I do not know the details of the compatibility story.
I'm just trying to work out what the specification should say.

(There can be delay with archiving your email on the W3C site when
posting to W3C lists if you never posted with the email address
before, since you need to approve that your messages will be archived
and that might take some time to be fully processed.)


-- 
http://annevankesteren.nl/
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


[webkit-dev] DOM methods that affect [[Prototype]]

2013-01-24 Thread Anne van Kesteren
Hi,

https://www.w3.org/Bugs/Public/show_bug.cgi?id=20567 could use input
from the WebKit community, in particular DOM/JavaScript experts. I
recommend reading through
http://lists.w3.org/Archives/Public/www-dom/2012OctDec/thread.html#msg143
and 
https://mail.mozilla.org/pipermail/es-discuss/2012-December/thread.html#27401
to some extent first. In particular the discussion is about what
happens to the [[Prototype]] of objects when objects are adopted and
when document.open() is invoked. Both Gecko and IE mutate the
[[Prototype]] and the tentative plan therefore is to align the
standard with that.

To make sure your feedback is fully considered by all parties raise it
via the bug or www-...@w3.org.

Thanks,


-- 
http://annevankesteren.nl/
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] DOM methods that affect [[Prototype]]

2013-01-24 Thread Ryosuke Niwa
On Thu, Jan 24, 2013 at 12:59 PM, Anne van Kesteren ann...@annevk.nlwrote:

 https://www.w3.org/Bugs/Public/show_bug.cgi?id=20567 could use input
 from the WebKit community, in particular DOM/JavaScript experts. I
 recommend reading through
 http://lists.w3.org/Archives/Public/www-dom/2012OctDec/thread.html#msg143
 and
 https://mail.mozilla.org/pipermail/es-discuss/2012-December/thread.html#27401
 to some extent first. In particular the discussion is about what
 happens to the [[Prototype]] of objects when objects are adopted and
 when document.open() is invoked. Both Gecko and IE mutate the
 [[Prototype]] and the tentative plan therefore is to align the
 standard with that.


At first glance, updating the prototype as done by Gecko and IE is the only
sensible behavior.

- R. Niwa
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] DOM methods that affect [[Prototype]]

2013-01-24 Thread Geoffrey Garen
 At first glance, updating the prototype as done by Gecko and IE is the only 
 sensible behavior.

I'm not sure I agree. See my comments in Bugzilla.

Anne, can you help me get those comments sent to the w3 list? I sent them 
myself, but they seem to be held up or bounced?

Thanks,
Geoff
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] DOM methods that affect [[Prototype]]

2013-01-24 Thread Adam Barth
Note that WebKit re-uses the same Document after a call to
document.open().  I suspect we're unlikely to change that behavior
anytime soon.

Adam


On Thu, Jan 24, 2013 at 12:59 PM, Anne van Kesteren ann...@annevk.nl wrote:
 Hi,

 https://www.w3.org/Bugs/Public/show_bug.cgi?id=20567 could use input
 from the WebKit community, in particular DOM/JavaScript experts. I
 recommend reading through
 http://lists.w3.org/Archives/Public/www-dom/2012OctDec/thread.html#msg143
 and 
 https://mail.mozilla.org/pipermail/es-discuss/2012-December/thread.html#27401
 to some extent first. In particular the discussion is about what
 happens to the [[Prototype]] of objects when objects are adopted and
 when document.open() is invoked. Both Gecko and IE mutate the
 [[Prototype]] and the tentative plan therefore is to align the
 standard with that.

 To make sure your feedback is fully considered by all parties raise it
 via the bug or www-...@w3.org.

 Thanks,


 --
 http://annevankesteren.nl/
 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo/webkit-dev
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] DOM methods that affect [[Prototype]]

2013-01-24 Thread Geoffrey Garen
 Note that WebKit re-uses the same Document after a call to
 document.open().  I suspect we're unlikely to change that behavior
 anytime soon.

Do we know of any websites that depend on this behavior?

Geoff
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] DOM methods that affect [[Prototype]]

2013-01-24 Thread Maciej Stachowiak

On Jan 24, 2013, at 6:20 PM, Adam Barth aba...@webkit.org wrote:

 Note that WebKit re-uses the same Document after a call to
 document.open().  I suspect we're unlikely to change that behavior
 anytime soon.

We also keep the same Window (which it sounds like IE doesn't, since that's 
cited as an object that gets its prototype replaced).

 - Maciej

 
 Adam
 
 
 On Thu, Jan 24, 2013 at 12:59 PM, Anne van Kesteren ann...@annevk.nl wrote:
 Hi,
 
 https://www.w3.org/Bugs/Public/show_bug.cgi?id=20567 could use input
 from the WebKit community, in particular DOM/JavaScript experts. I
 recommend reading through
 http://lists.w3.org/Archives/Public/www-dom/2012OctDec/thread.html#msg143
 and 
 https://mail.mozilla.org/pipermail/es-discuss/2012-December/thread.html#27401
 to some extent first. In particular the discussion is about what
 happens to the [[Prototype]] of objects when objects are adopted and
 when document.open() is invoked. Both Gecko and IE mutate the
 [[Prototype]] and the tentative plan therefore is to align the
 standard with that.
 
 To make sure your feedback is fully considered by all parties raise it
 via the bug or www-...@w3.org.
 
 Thanks,
 
 
 --
 http://annevankesteren.nl/
 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo/webkit-dev
 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo/webkit-dev

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] DOM methods that affect [[Prototype]]

2013-01-24 Thread Adam Barth
On Thu, Jan 24, 2013 at 7:13 PM, Geoffrey Garen gga...@apple.com wrote:
 Note that WebKit re-uses the same Document after a call to
 document.open().  I suspect we're unlikely to change that behavior
 anytime soon.

 Do we know of any websites that depend on this behavior?

I haven't tested this in a while, so I might be misremembering, but
Gecko has magic to rewrite all JavaScript references to the old
document to point to the new document.  I don't know whether that
magic is required by web compatibility, but I bet it is and I don't
think we want to introduce more of that magic into WebKit.  (We do
something similar for Window today, but Window is a unique snowflake.)

Adam
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev