Re: [whatwg] Need to define same-origin policy for WebIDL operations/getters/setters

2013-01-11 Thread Gavin Sharp
On Thu, Jan 10, 2013 at 10:29 PM, Adam Barth w...@adambarth.com wrote: Yes, agreed. For what it's worth, I believe Gecko recently made history not accessible cross-origin anymore, so with any luck you'll be able to make this change too if desired... Do you have a link to the bug where that

[whatwg] We should not throw DOM Consistency and Infoset compatibility under the bus

2013-01-11 Thread Henri Sivonen
Hixie wrote in https://www.w3.org/Bugs/Public/show_bug.cgi?id=18669#c31 : I think it's fine for this not to work in XML, or require XML changes, or use an attribute like xml:component= in XML. It's not going to be used in XML much anyway in practice. I've already had browser vendors ask me how

Re: [whatwg] Relative positioning in the top layer

2013-01-11 Thread Anne van Kesteren
On Fri, Jan 11, 2013 at 8:26 AM, Matt Falkenhagen fal...@chromium.org wrote: The Fullscreen spec says, for an element in the top layer: If its specified position property is static, it computes to absolute.[1] I think this is to make top layer elements out of flow. But then shouldn't position

Re: [whatwg] Relative positioning in the top layer

2013-01-11 Thread Anne van Kesteren
On Fri, Jan 11, 2013 at 11:40 AM, Anne van Kesteren ann...@annevk.nl wrote: Yeah, I did not carefully review the suggestion from http://lists.w3.org/Archives/Public/public-webapps/2012AprJun/0970.html it seems. :-( Fixed:

Re: [whatwg] Canvas 2D memory management

2013-01-11 Thread Paul Bakaus
Hi Ashley, I brought this very topic up in the latest W3C performance workgroup meeting but pretty much all of my ideas were cut off due to a number of parties believing that these are ultimately UA-specific (browser specific) concerns, and should be dealt with at the browser level. Jason Weber

Re: [whatwg] Need to define same-origin policy for WebIDL operations/getters/setters

2013-01-11 Thread Boris Zbarsky
On 1/11/13 1:29 AM, Adam Barth wrote: On Wed, Jan 9, 2013 at 8:21 PM, Boris Zbarsky bzbar...@mit.edu wrote: Yes, agreed. For what it's worth, I believe Gecko recently made history not accessible cross-origin anymore Do you have a link to the bug where that change was made?

Re: [whatwg] We should not throw DOM Consistency and Infoset compatibility under the bus

2013-01-11 Thread David Young
On Fri, Jan 11, 2013 at 12:29:42PM +0200, Henri Sivonen wrote: I think it would be a mistake to change HTML in such a way that it would no longer fit into the XML data model *as implemented* and thereby limit the range of existing software that could be used outside browsers for working with

Re: [whatwg] Canvas 2D memory management

2013-01-11 Thread Rik Cabanier
On Wed, Jan 9, 2013 at 8:00 AM, Ashley Gullen ash...@scirra.com wrote: Some developers are starting to design large scale games using our HTML5 game engine, and we're finding we're running in to memory management issues. Consider a device with 50mb of texture memory available. A game might

Re: [whatwg] seamless iframes and event propagation

2013-01-11 Thread Dimitri Glazkov
On Wed, Jan 9, 2013 at 1:42 PM, Anne van Kesteren ann...@annevk.nl wrote: My bad, I actually meant if a's associated shadow tree had an insertion point through which a's child, which is b, would go and then the event would be dispatched in b's associated shadow tree. (I phrased that beyond

Re: [whatwg] seamless iframes and event propagation

2013-01-11 Thread Anne van Kesteren
On Fri, Jan 11, 2013 at 6:50 PM, Dimitri Glazkov dglaz...@chromium.org wrote: On Wed, Jan 9, 2013 at 1:42 PM, Anne van Kesteren ann...@annevk.nl wrote: My bad, I actually meant if a's associated shadow tree had an insertion point through which a's child, which is b, would go and then the event

Re: [whatwg] seamless iframes and event propagation

2013-01-11 Thread Dimitri Glazkov
On Fri, Jan 11, 2013 at 10:10 AM, Anne van Kesteren ann...@annevk.nl wrote: On Fri, Jan 11, 2013 at 6:50 PM, Dimitri Glazkov dglaz...@chromium.org wrote: On Wed, Jan 9, 2013 at 1:42 PM, Anne van Kesteren ann...@annevk.nl wrote: My bad, I actually meant if a's associated shadow tree had an

Re: [whatwg] seamless iframes and event propagation

2013-01-11 Thread Anne van Kesteren
On Fri, Jan 11, 2013 at 7:56 PM, Dimitri Glazkov dglaz...@chromium.org wrote: Can you elaborate on this a bit more. Note, you don't need to compute offsetX/Y until they are actually requested (which is what WebKit does anyway). I see. That would change matters indeed. Is that the case for all

Re: [whatwg] seamless iframes and event propagation

2013-01-11 Thread Anne van Kesteren
On Fri, Jan 11, 2013 at 7:56 PM, Dimitri Glazkov dglaz...@chromium.org wrote: On Fri, Jan 11, 2013 at 10:10 AM, Anne van Kesteren ann...@annevk.nl wrote: On Fri, Jan 11, 2013 at 6:50 PM, Dimitri Glazkov dglaz...@chromium.org wrote: Okay, so event path would be (in tree order): a -- [shadow

Re: [whatwg] seamless iframes and event propagation

2013-01-11 Thread Dimitri Glazkov
On Fri, Jan 11, 2013 at 11:12 AM, Anne van Kesteren ann...@annevk.nl wrote: On Fri, Jan 11, 2013 at 7:56 PM, Dimitri Glazkov dglaz...@chromium.org wrote: Can you elaborate on this a bit more. Note, you don't need to compute offsetX/Y until they are actually requested (which is what WebKit

Re: [whatwg] seamless iframes and event propagation

2013-01-11 Thread Dimitri Glazkov
On Fri, Jan 11, 2013 at 11:14 AM, Anne van Kesteren ann...@annevk.nl wrote: Normally with b being a child of a there would not be any adjustment. Yup. I don't understand whether you're just agreeing with me or disagreeing :) With shadow trees in place, we need to let them react to events

Re: [whatwg] seamless iframes and event propagation

2013-01-11 Thread Anne van Kesteren
On Fri, Jan 11, 2013 at 8:16 PM, Dimitri Glazkov dglaz...@chromium.org wrote: On Fri, Jan 11, 2013 at 11:12 AM, Anne van Kesteren ann...@annevk.nl wrote: Is that the case for all non-target/relatedTarget attributes that need adjustment? That they do not actually need to be adjusted but are

Re: [whatwg] seamless iframes and event propagation

2013-01-11 Thread Dimitri Glazkov
On Fri, Jan 11, 2013 at 11:28 AM, Anne van Kesteren ann...@annevk.nl wrote: On Fri, Jan 11, 2013 at 8:16 PM, Dimitri Glazkov dglaz...@chromium.org wrote: On Fri, Jan 11, 2013 at 11:12 AM, Anne van Kesteren ann...@annevk.nl wrote: Is that the case for all non-target/relatedTarget attributes

Re: [whatwg] seamless iframes and event propagation

2013-01-11 Thread Anne van Kesteren
On Fri, Jan 11, 2013 at 8:31 PM, Dimitri Glazkov dglaz...@chromium.org wrote: Sure. Where are you seeing this list being mentioned? In Shadow DOM spec or in DOM Core spec? I am happy to help, just not sure what exactly I need to be doing :) I want you to create a list :-) Which attributes are

Re: [whatwg] We should not throw DOM Consistency and Infoset compatibility under the bus

2013-01-11 Thread Ian Hickson
On Fri, 11 Jan 2013, Henri Sivonen wrote: Hixie wrote in https://www.w3.org/Bugs/Public/show_bug.cgi?id=18669#c31 : I think it's fine for this not to work in XML, or require XML changes, or use an attribute like xml:component= in XML. It's not going to be used in XML much anyway in

Re: [whatwg] Sentence structure

2013-01-11 Thread Vipul S. Chawathe
From: Ian Hickson [mailto:i...@hixie.ch] On Thu, 10 Jan 2013, Thomas A. Fine wrote: Use Cases: 4. Clarifying sentence boundaries would be an aid in machine translation software. Do you have any evidence supporting this? I've spoken with engineers who work on machine translation

Re: [whatwg] We should not throw DOM Consistency and Infoset compatibility under the bus

2013-01-11 Thread Vipul S. Chawathe
From: Ian Hickson [mailto:i...@hixie.ch] To: Henri Sivonen On Fri, 11 Jan 2013, Henri Sivonen wrote: Hixie wrote in https://www.w3.org/Bugs/Public/show_bug.cgi?id=18669#c31 : I think it's fine for this not to work in XML, or require XML changes, or use an attribute like xml:component= in

Re: [whatwg] Canvas 2D memory management

2013-01-11 Thread Robert O'Callahan
On Sat, Jan 12, 2013 at 6:41 AM, Rik Cabanier caban...@gmail.com wrote: Some of you concerns with memory management could be addressed with WeakMaps. Basically, you can put all your images in a WeakMap and during the draw cycle, you pull them out and use them. If they're no longer there, it

Re: [whatwg] Canvas 2D memory management

2013-01-11 Thread Rik Cabanier
On Fri, Jan 11, 2013 at 2:36 PM, Robert O'Callahan rob...@ocallahan.orgwrote: On Sat, Jan 12, 2013 at 6:41 AM, Rik Cabanier caban...@gmail.com wrote: Some of you concerns with memory management could be addressed with WeakMaps. Basically, you can put all your images in a WeakMap and during

Re: [whatwg] Sentence structure

2013-01-11 Thread Ian Hickson
On Sat, 12 Jan 2013, Vipul S. Chawathe wrote: I'm doing some related work that requires machine translation on the lines of export/import HTML snippets. Human language content boundaries are directly determined by author's grammatical punctuation skills at the sentence level. Sure, but if

Re: [whatwg] We should not throw DOM Consistency and Infoset compatibility under the bus

2013-01-11 Thread yuhong
Ian Hickson wrote: On Fri, 11 Jan 2013, Henri Sivonen wrote: Hixie wrote in https://www.w3.org/Bugs/Public/show_bug.cgi?id=18669#c31 : I think it's fine for this not to work in XML, or require XML changes, or use an attribute like xml:component= in XML. It's not going to be used in

Re: [whatwg] seamless iframes and event propagation

2013-01-11 Thread Dimitri Glazkov
On Fri, Jan 11, 2013 at 11:56 AM, Anne van Kesteren ann...@annevk.nl wrote: On Fri, Jan 11, 2013 at 8:31 PM, Dimitri Glazkov dglaz...@chromium.org wrote: Sure. Where are you seeing this list being mentioned? In Shadow DOM spec or in DOM Core spec? I am happy to help, just not sure what