Re: [whatwg] Node inDocument

2011-08-30 Thread Jonas Sicking
On Mon, Aug 29, 2011 at 11:32 PM, Anne van Kesteren wrote: > On Tue, 30 Aug 2011 03:49:48 +0200, Erik Arvidsson wrote: >> >> Node inDocument seems cleaner but I'd be happy with contains moved to >> Node so that Document could optimize this. > > The DOM is discussed on www-...@w3.org. This particu

Re: [whatwg] Node inDocument

2011-08-30 Thread Anne van Kesteren
On Tue, 30 Aug 2011 10:38:19 +0200, Jonas Sicking 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 have inDocument though. That'll allow people to more clearly expres

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 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 have inDocument t

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 wrote: >>> In general I think it's better to have functions that deal with child >>> lists on Node rather than on Element/Document/DocumentFragmen

Re: [whatwg] Node inDocument

2011-08-30 Thread Anne van Kesteren
On Tue, 30 Aug 2011 11:58:21 +0200, Robin Berjon 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(). -- Anne van K

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 , > 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" k

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 t

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

2011-08-30 Thread Anne van Kesteren
On Wed, 24 Aug 2011 10:49:24 +0200, Anselm Hannemann - Novolo Designagentur wrote: Tried several other ways, too, (you can see in versions) but this seems to be the best. What do you think about providing a way to use responsive media through media-queries? For now there are only some JS-C

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 differ

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 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 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. Speak for your ow

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 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. A

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 wrote: Le 30 août 2011 à 10:51, Anne van Kesteren a écrit : On Tue, 30 Aug 2011 16:31:59 +0200, Karl Dubost wrote: * It is in fact an issue for being able to make the website responsive on Mobile devices in low banwidth. The mobile devices ar

Re: [whatwg] Add "naturalOrientation" property to

2011-08-30 Thread Tab Atkins Jr.
On Fri, Aug 26, 2011 at 9:04 PM, Karl Dubost 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 hosting of im

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 wrote: Le 30 août 2011 à 10:51, Anne van Kesteren a écrit : On Tue, 30 Aug 2011 16:31:59 +0200, Karl Dubost wrote: * It is in fact an issue for being able to make the website responsive on Mobile d

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

2011-08-30 Thread Ryosuke Niwa
On Mon, Aug 29, 2011 at 11:18 AM, Aryeh Gregor wrote: > In the UndoManager spec , > 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 "man

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

2011-08-30 Thread Aryeh Gregor
On Tue, Aug 30, 2011 at 12:12 PM, Ryosuke Niwa 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 things. That'

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! Ehsa

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 Niwa 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 man

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 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 in the

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 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 Ehsan)

[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 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 point. >

Re: [whatwg] Requesting TextMetrics baseline property

2011-08-30 Thread Charles Pritchard
On Aug 30, 2011, at 3:26 PM, "Tab Atkins Jr." wrote: > On Tue, Aug 30, 2011 at 3:19 PM, Charles Pritchard 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 }; >> >>

Re: [whatwg] Requesting TextMetrics baseline property

2011-08-30 Thread Tab Atkins Jr.
On Tue, Aug 30, 2011 at 3:56 PM, Charles Pritchard wrote: > On Aug 30, 2011, at 3:26 PM, "Tab Atkins Jr." wrote: >> On Tue, Aug 30, 2011 at 3:19 PM, Charles Pritchard wrote: >>> >>> I'd like to see a new property added to the TextMetrics object from Canvas >>> 2d. >>> >>> var t = ctx.measureText

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

2011-08-30 Thread Jonas Sicking
On Tue, Aug 30, 2011 at 11:55 AM, Ehsan Akhgari wrote: > On 11-08-30 12:23 PM, Aryeh Gregor wrote: >> >> On Tue, Aug 30, 2011 at 12:12 PM, Ryosuke Niwa  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

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

2011-08-30 Thread Ryosuke Niwa
On Tue, Aug 30, 2011 at 7:12 PM, Jonas Sicking wrote: > On Tue, Aug 30, 2011 at 11:55 AM, Ehsan Akhgari 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 > > explicitly specifies how t

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 wrote: > On Tue, Aug 30, 2011 at 12:21 PM, Ehsan Akhgari 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

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 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 agreement. In DOM Core