Re: [whatwg] Node inDocument

2011-08-30 Thread James Graham
On 08/30/2011 10:44 AM, Anne van Kesteren wrote: On Tue, 30 Aug 2011 10:38:19 +0200, Jonas Sicking jo...@sicking.cc wrote: In general I think it's better to have functions that deal with child lists on Node rather than on Element/Document/DocumentFragment. I think it might still make sense to

Re: [whatwg] Node inDocument

2011-08-30 Thread Robin Berjon
On Aug 30, 2011, at 11:40 , James Graham wrote: On 08/30/2011 10:44 AM, Anne van Kesteren wrote: On Tue, 30 Aug 2011 10:38:19 +0200, Jonas Sicking jo...@sicking.cc wrote: In general I think it's better to have functions that deal with child lists on Node rather than on

Re: [whatwg] Node inDocument

2011-08-30 Thread Anne van Kesteren
On Tue, 30 Aug 2011 11:58:21 +0200, Robin Berjon ro...@berjon.com wrote: But node.ownerDocument.contains(node) isn't. There's no doubt that node.inDocument is less error-prone though. Depends on the use case. The thread started with the document in which case you want document.contains().

Re: [whatwg] Terminology: managed vs. manual transactions

2011-08-30 Thread Cameron Heavon-Jones
On 29/08/2011, at 7:18 PM, Aryeh Gregor wrote: In the UndoManager spec http://rniwa.com/editing/undomanager.html, there are two types of transactions: managed and manual. Managed transactions are handled by the browser, while manual ones are handled by the author. The term managed keeps

Re: [whatwg] Terminology: managed vs. manual transactions

2011-08-30 Thread Karl Dubost
Le 30 août 2011 à 02:39, Anne van Kesteren a écrit : Or user agent transaction and author transaction. (XMLHttpRequest e.g. uses author request headers.) In version UndoManager and DOM Transaction Proposal Working Draft — 9 August 2011 Suggestion: A managed transaction is a

Re: [whatwg] add html-attribute for responsive images

2011-08-30 Thread Karl Dubost
Anne, Le 30 août 2011 à 10:21, Anne van Kesteren a écrit : It's too much complexity for a niche problem. It is not a niche problem. * It is in fact an issue for being able to make the website responsive on Mobile devices in low banwidth. * It has also the impact that you want to send

Re: [whatwg] add html-attribute for responsive images

2011-08-30 Thread Anne van Kesteren
On Tue, 30 Aug 2011 16:31:59 +0200, Karl Dubost ka...@opera.com wrote: * It is in fact an issue for being able to make the website responsive on Mobile devices in low banwidth. The mobile devices are the ones with the high-resolution displays. -- Anne van Kesteren http://annevankesteren.nl/

Re: [whatwg] add html-attribute for responsive images

2011-08-30 Thread Julian Reschke
On 2011-08-30 16:51, Anne van Kesteren wrote: On Tue, 30 Aug 2011 16:31:59 +0200, Karl Dubost ka...@opera.com wrote: * It is in fact an issue for being able to make the website responsive on Mobile devices in low banwidth. The mobile devices are the ones with the high-resolution displays.

Re: [whatwg] add html-attribute for responsive images

2011-08-30 Thread Karl Dubost
Le 30 août 2011 à 10:51, Anne van Kesteren a écrit : On Tue, 30 Aug 2011 16:31:59 +0200, Karl Dubost ka...@opera.com wrote: * It is in fact an issue for being able to make the website responsive on Mobile devices in low banwidth. The mobile devices are the ones with the high-resolution

Re: [whatwg] add html-attribute for responsive images

2011-08-30 Thread Anne van Kesteren
On Tue, 30 Aug 2011 17:18:38 +0200, Karl Dubost ka...@opera.com wrote: Le 30 août 2011 à 10:51, Anne van Kesteren a écrit : On Tue, 30 Aug 2011 16:31:59 +0200, Karl Dubost ka...@opera.com wrote: * It is in fact an issue for being able to make the website responsive on Mobile devices in low

Re: [whatwg] Add naturalOrientation property to img

2011-08-30 Thread Tab Atkins Jr.
On Fri, Aug 26, 2011 at 9:04 PM, Karl Dubost ka...@opera.com wrote: Le 26 août 2011 à 16:49, Tab Atkins Jr. a écrit : If Flickr uses this CSS property, and does so in different ways in the two places, that's just a Flickr bug. nope Flickr offers tools to process images. Flickr offers

Re: [whatwg] add html-attribute for responsive images

2011-08-30 Thread Bronislav Klučka
On 30.8.2011 17:23, Anne van Kesteren wrote: On Tue, 30 Aug 2011 17:18:38 +0200, Karl Dubost ka...@opera.com wrote: Le 30 août 2011 à 10:51, Anne van Kesteren a écrit : On Tue, 30 Aug 2011 16:31:59 +0200, Karl Dubost ka...@opera.com wrote: * It is in fact an issue for being able to make the

Re: [whatwg] Terminology: managed vs. manual transactions

2011-08-30 Thread Aryeh Gregor
On Tue, Aug 30, 2011 at 12:12 PM, Ryosuke Niwa rn...@webkit.org wrote: Mn... I've never had that problem.  e.g. .net framework uses the term managed code to mean the code that's garbage-collected by the framework and unmanaged code to mean the code that manually manage memory among other

Re: [whatwg] Fixing undo on the Web - UndoManager and Transaction

2011-08-30 Thread Ehsan Akhgari
On 11-08-25 7:06 PM, Ian Hickson wrote: - We need to figure out how UndoManager objects affect the bfcache and the document salvageable flag. Please ping me on IRC about this. Would you mind sharing the results of that conversation, please (in case it has happened yet). Thanks! Ehsan

Re: [whatwg] Terminology: managed vs. manual transactions

2011-08-30 Thread Ehsan Akhgari
On 11-08-30 12:23 PM, Aryeh Gregor wrote: On Tue, Aug 30, 2011 at 12:12 PM, Ryosuke Niwarn...@webkit.org wrote: Mn... I've never had that problem. e.g. .net framework uses the term managed code to mean the code that's garbage-collected by the framework and unmanaged code to mean the code that

Re: [whatwg] Fixing undo on the Web - UndoManager and Transaction

2011-08-30 Thread Ryosuke Niwa
On Tue, Aug 30, 2011 at 11:52 AM, Ryosuke Niwa rn...@webkit.org wrote: - must return the object implementing the UndoManager interface should probably clarify _which_ object. There's presumably more than one object in the world implementing this interface. :-) Oh, yes. I'll clarify

Re: [whatwg] Fixing undo on the Web - UndoManager and Transaction

2011-08-30 Thread Ryosuke Niwa
On Tue, Aug 30, 2011 at 12:21 PM, Ehsan Akhgari eh...@mozilla.com wrote: On 11-08-30 3:15 PM, Ryosuke Niwa wrote: 1. Should Transaction have reapply property or not? It appears that some of us (e.g. me, Annie, Alex) want it for semantical clarity while others (e.g. Jonas and

[whatwg] Requesting TextMetrics baseline property

2011-08-30 Thread Charles Pritchard
I'd like to see a new property added to the TextMetrics object from Canvas 2d. var t = ctx.measureText('text span'); t == { width: int, baseline: int }; The baseline corresponds to the vertical offset of the anchor point. A tiny number. It's not the same as height, but it has a similar use.

Re: [whatwg] Requesting TextMetrics baseline property

2011-08-30 Thread Tab Atkins Jr.
On Tue, Aug 30, 2011 at 3:19 PM, Charles Pritchard ch...@jumis.com wrote: I'd like to see a new property added to the TextMetrics object from Canvas 2d. var t = ctx.measureText('text span'); t == { width: int, baseline: int }; The baseline corresponds to the vertical offset of the anchor

Re: [whatwg] Requesting TextMetrics baseline property

2011-08-30 Thread Charles Pritchard
On Aug 30, 2011, at 3:26 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: On Tue, Aug 30, 2011 at 3:19 PM, Charles Pritchard ch...@jumis.com wrote: I'd like to see a new property added to the TextMetrics object from Canvas 2d. var t = ctx.measureText('text span'); t == { width: int,

Re: [whatwg] Requesting TextMetrics baseline property

2011-08-30 Thread Tab Atkins Jr.
On Tue, Aug 30, 2011 at 3:56 PM, Charles Pritchard ch...@jumis.com wrote: On Aug 30, 2011, at 3:26 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: On Tue, Aug 30, 2011 at 3:19 PM, Charles Pritchard ch...@jumis.com wrote: I'd like to see a new property added to the TextMetrics object from Canvas

Re: [whatwg] Terminology: managed vs. manual transactions

2011-08-30 Thread Jonas Sicking
On Tue, Aug 30, 2011 at 11:55 AM, Ehsan Akhgari eh...@mozilla.com wrote: On 11-08-30 12:23 PM, Aryeh Gregor wrote: On Tue, Aug 30, 2011 at 12:12 PM, Ryosuke Niwarn...@webkit.org  wrote: Mn... I've never had that problem.  e.g. .net framework uses the term managed code to mean the code that's

Re: [whatwg] Terminology: managed vs. manual transactions

2011-08-30 Thread Ryosuke Niwa
On Tue, Aug 30, 2011 at 7:12 PM, Jonas Sicking jo...@sicking.cc wrote: On Tue, Aug 30, 2011 at 11:55 AM, Ehsan Akhgari eh...@mozilla.com wrote: Isn't the main difference between the two transactions the fact that the browser knows how to undo/redo managed transactions, whereas the author

Re: [whatwg] Fixing undo on the Web - UndoManager and Transaction

2011-08-30 Thread Jonas Sicking
On Tue, Aug 30, 2011 at 12:30 PM, Ryosuke Niwa rn...@webkit.org wrote: On Tue, Aug 30, 2011 at 12:21 PM, Ehsan Akhgari eh...@mozilla.com wrote: On 11-08-30 3:15 PM, Ryosuke Niwa wrote:    1. Should Transaction have reapply property or not?  It appears that some    of us (e.g. me, Annie,

Re: [whatwg] Fixing undo on the Web - UndoManager and Transaction

2011-08-30 Thread Anne van Kesteren
On Tue, 30 Aug 2011 21:04:09 +0200, Ryosuke Niwa rn...@webkit.org wrote: I've updated my document: https://rniwa.com/editing/undomanager.html I clarified which object it should return and also moved undoManager idl attribute from Element/Document to Node as we have agreed. I missed this