[Bug 16733] Drop 'endings'?

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16733

--- Comment #19 from Glenn Maynard <glenn@zewt.org> 2012-04-25 14:09:53 UTC ---
(In reply to comment #17)
> The use cases in comment 4 seem important enough to try to solve.
> 
> We certainly could provide a orthogonal API like the one in comment 9 though.
> But if the number of APIs where we would need to provide "built in" conversion
> is small enough then providing built-in support might be nicer for authors.
> 
> Right now we're considering built-in support in 2 APIs, Blob-ctor and
> FileWriter (or the FileHandle API I've proposed, or whatever we end up going
> with).

The problem is that it gives an inconsistent API, since the newline handling in
the Blob ctor can only work for some argument types and not others.  That's
fairly confusing, and having a separate function that clearly only supports
strings is a lot clearer.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 25 April 2012 14:10:05 UTC