Re: [whatwg] Proposal: Add HTMLElement.innerText

2010-08-15 Thread Robert O'Callahan
On Sun, Aug 15, 2010 at 5:57 PM, Adam Barth w...@adambarth.com wrote: On Sat, Aug 14, 2010 at 10:14 PM, Robert O'Callahan rob...@ocallahan.org wrote: On Sun, Aug 15, 2010 at 12:17 PM, Adam Barth w...@adambarth.com wrote: That's difficult to say given that it's supported in most browsers.

Re: [whatwg] Proposal: Add HTMLElement.innerText

2010-08-15 Thread Robert O'Callahan
On Sun, Aug 15, 2010 at 6:16 PM, Robert O'Callahan rob...@ocallahan.orgwrote: Wouldn't you consider the interoperability benefits to the Web platform? Not to mention the benefit of simplifying the platform a tiny bit by removing a feature which mostly duplicates another much more well-known

Re: [whatwg] Proposal: Add HTMLElement.innerText

2010-08-15 Thread Adam Barth
On Sat, Aug 14, 2010 at 11:18 PM, Robert O'Callahan rob...@ocallahan.org wrote: On Sun, Aug 15, 2010 at 6:16 PM, Robert O'Callahan rob...@ocallahan.org wrote:  Wouldn't you consider the interoperability benefits to the Web platform? Not to mention the benefit of simplifying the platform a

Re: [whatwg] Proposal: Add HTMLElement.innerText

2010-08-15 Thread Anne van Kesteren
On Sun, 15 Aug 2010 08:30:28 +0200, Adam Barth w...@adambarth.com wrote: On Sat, Aug 14, 2010 at 11:18 PM, Robert O'Callahan rob...@ocallahan.org wrote: On Sun, Aug 15, 2010 at 6:16 PM, Robert O'Callahan rob...@ocallahan.org wrote: Wouldn't you consider the interoperability benefits to the

Re: [whatwg] Proposal: Add HTMLElement.innerText

2010-08-15 Thread Robert O'Callahan
On Sun, Aug 15, 2010 at 6:30 PM, Adam Barth w...@adambarth.com wrote: On Sat, Aug 14, 2010 at 11:18 PM, Robert O'Callahan rob...@ocallahan.org wrote: On Sun, Aug 15, 2010 at 6:16 PM, Robert O'Callahan rob...@ocallahan.org wrote: Wouldn't you consider the interoperability benefits to

Re: [whatwg] Proposal: Add HTMLElement.innerText

2010-08-15 Thread Michael A. Puls II
On Sat, 14 Aug 2010 20:03:30 -0400, Mike Wilcox m...@mikewilcox.net wrote: Wow, I was just thinking of proposing this myself a few days ago. In addition to Adam's comments, there is no standard, stable way of *getting* the text from a series of nodes. textContent returns everything,

Re: [whatwg] Proposal: Add HTMLElement.innerText

2010-08-15 Thread Mike Wilcox
innerText is one of those things IE got right, just like innerHTML. Let's please consider making that a standard instead of removing it. Also, please don't make the mistake of thinking it is the same thing as textContent. Think of textContent as pre-formatted text, and innerText as plain text.

Re: [whatwg] Proposal: Add HTMLElement.innerText

2010-08-15 Thread Michael A. Puls II
On Sun, 15 Aug 2010 11:17:43 -0400, Mike Wilcox m...@mikewilcox.net wrote: Michael, good try, but I've been down that road; it's pretty hard to do. You left in the script text, Yeh, forgot about that. I'm grabbing text nodes from anything. spaces were missing, and there were no line

[whatwg] Thoughts and feedback on HTML5 drag and drop API

2010-08-15 Thread David Bruant
Hi, After having a bug while trying to implement a browser-based chess game using the native DragDrop API, I have decided to investigate a bit on this API, examples and opinions. There is already a very good explanation of the current state of the API and how to use it here :

Re: [whatwg] Proposal: Add HTMLElement.innerText

2010-08-15 Thread Jonas Sicking
On Sun, Aug 15, 2010 at 11:17 AM, Mike Wilcox m...@mikewilcox.net wrote: innerText is one of those things IE got right, just like innerHTML. Let's please consider making that a standard instead of removing it. Also, please don't make the mistake of thinking it is the same thing as

Re: [whatwg] Proposal: Add HTMLElement.innerText

2010-08-15 Thread Mike Wilcox
On Aug 15, 2010, at 6:26 PM, Jonas Sicking wrote: On Sun, Aug 15, 2010 at 11:17 AM, Mike Wilcox m...@mikewilcox.net wrote: innerText is one of those things IE got right, just like innerHTML. Let's please consider making that a standard instead of removing it. Also, please don't make the

Re: [whatwg] Proposal: Add HTMLElement.innerText

2010-08-15 Thread Robert O'Callahan
What about lists? Alt text in img? Rob -- Now the Bereans were of more noble character than the Thessalonians, for they received the message with great eagerness and examined the Scriptures every day to see if what Paul said was true. [Acts 17:11]

Re: [whatwg] Proposal: Add HTMLElement.innerText

2010-08-15 Thread Mike Wilcox
On Aug 15, 2010, at 7:29 PM, Robert O'Callahan wrote: What about lists? Alt text in img? It handles lists and the line breaks, but it doesn't indent. Image attributes are ignored. Mike

Re: [whatwg] Proposal: Add HTMLElement.innerText

2010-08-15 Thread Robert O'Callahan
On Mon, Aug 16, 2010 at 12:35 PM, Mike Wilcox m...@mikewilcox.net wrote: On Aug 15, 2010, at 7:29 PM, Robert O'Callahan wrote: What about lists? Alt text in img? It handles lists and the line breaks, but it doesn't indent. Image attributes are ignored. Tables? Is there any documentation

Re: [whatwg] Proposal: Add HTMLElement.innerText

2010-08-15 Thread Mike Wilcox
On Aug 15, 2010, at 7:53 PM, Robert O'Callahan wrote: Tables? TDs are inline and TRs act as line breaks. Is there any documentation for how the serialization works? I'm just running the tests as you guys request them. I'm not sure if or how well this feature is spec'd out. Mike

Re: [whatwg] Proposal: Add HTMLElement.innerText

2010-08-15 Thread Charles McCathieNevile
On Mon, 16 Aug 2010 09:17:42 +0800, Mike Wilcox m...@mikewilcox.net wrote: On Aug 15, 2010, at 7:53 PM, Robert O'Callahan wrote: Tables? TDs are inline and TRs act as line breaks. Is there any documentation for how the serialization works? I'm just running the tests as you guys

Re: [whatwg] Proposal: Add HTMLElement.innerText

2010-08-15 Thread Mihai Parparita
On Sun, Aug 15, 2010 at 8:41 PM, Robert O'Callahan rob...@ocallahan.org wrote: actually a useful and needed feature, we should hear it. Or if someone from Webkit or Opera wants to explain why they added it, that would be useful too. FWIW, WebKit has supported innerText since at least when it