01:38 | <zewt> | TabAtkins: "add bloat to the platform so I don't have to learn anything new" D: |
01:38 | <TabAtkins> | Yeah. :/ |
06:53 | <Ms2ger> | Hixie_, cloneNode defaults to true in Gecko too |
07:02 | <Ms2ger> | Looks like Gecko has @srcdoc now |
07:48 | <MikeSmith> | Ms2ger: moving getElementById to ParentNode would mean Element would end up having it too, right? |
07:48 | <Ms2ger> | Doesn't it? |
07:48 | <MikeSmith> | it doesn't now I don't think |
07:48 | <Ms2ger> | Oh, not Id |
07:48 | <Ms2ger> | Only TagName/TagNameNS/ClassName |
07:48 | <MikeSmith> | yeah |
08:16 | <annevk> | Hixie_: I think Chrome might default to false because they didn't have actual optional arguments to begin with |
08:17 | <annevk> | Hixie_: for cloneNode(), arv can prolly get that fixed |
12:00 | <galant> | how can I find cursor/caret position in contenteditable section element? |
13:45 | <zewt> | https://www.w3.org/Bugs/Public/show_bug.cgi?id=22515 "find"? is that a weird typo of "querySelector" |
13:45 | <Ms2ger> | http://dev.w3.org/2006/webapi/selectors-api2/#find |
13:47 | <zewt> | looks like something that ... doesn't exist |
13:50 | <zewt> | can we just say no to specs that screaming-caps MUST |
13:55 | <zewt> | so findAll() wouldn't return objects in tree order like querySelectorAll? |
14:23 | <galant> | companies that makes web browsers must implement standards that are defined by w3c? |
14:31 | <Ms2ger> | No |
14:31 | <galant> | what is this ? http://dom.spec.whatwg.org/ |
14:32 | <galant> | who makes dom technology whatwg or w3c? |
14:35 | <Ms2ger> | annevk does, and he publishes at the WHATWG now |
14:38 | <arv> | annevk, I'll look at cloneNode. Should be trivial. |
15:05 | <Hixie_> | galant: it's more the other way around... w3c must write specs that browsers implement |
15:15 | <gsnedders> | Well, the W3C can do whatever the hell they like; it just may struggle to remain relevant as a standards organization if they don't do anything any browser wants to implement. |
15:15 | <galant> | ok thanks |
15:46 | <SimonSapin> | Can I tell html5lib here is the character encoding I got from Content-Type, do your thing regarding http://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html#determining-the-character-encoding ? |
20:18 | <Hixie_> | i think we should make people take this test before they can vote in working groups http://www.slate.com/blogs/the_vault/2013/06/28/voting_rights_and_the_supreme_court_the_impossible_literacy_test_louisiana.html |
20:19 | <Hixie_> | (obviously its original purpose is an abomination, but that's a separate issue) |
20:42 | <galant> | can I find the text node in the element that has contenteditable and I am writing in? |
20:45 | <Hixie_> | probably, but can you be more specific about what you mean? |
20:45 | <galant> | can I find number of characters from beginning to the caret/cursor position? in element or text node I am writing in? in the element there are text nodes and img elements |
20:46 | <galant> | I have one section element htat has contenteditable it has text nodes and img elements, if I write in some text node in that element - can I find number of characters from the beginning of the text node or the element I am writing in? |
20:46 | <galant> | that* |
20:55 | <galant> | can I do this with DOM range api and is it cross browser compatible and with older browsers? |
20:55 | <Hixie_> | you can find the caret position using getSelection() |
20:56 | <Hixie_> | and in most browsers, they have DOM Range and you should be able to manipulate the range pretty easily... take a copy of the selection range, and change one of its ends to the start of the block |
20:56 | <galant> | Hixie_, but that isn't for selection? Returns a selection object representing the range of text selected by the user. |
20:56 | <galant> | I need just caret/cursor position not the selection |
20:56 | <Hixie_> | if there's no selection, the selection is a collapsed range at the cursor position |
20:57 | <galant> | ahm nice |
20:57 | <galant> | thanks Hixie_ |
20:57 | <Hixie_> | if there's a selection, there's no cursor (in most operating systems) |
20:57 | <Hixie_> | np |
20:57 | <galant> | Hixie_, cursor position is calculated from the starting of the element or the text node? |
20:57 | <Hixie_> | it's a range, so the usual range thing |
20:58 | <galant> | I have element with contenteditable which has text nodes and img elements |
20:58 | <galant> | ok |
21:14 | <galant> | Hixie_, I don't understand how can I find cursor position from the getSelection() :S |
21:21 | <galant> | ok Hixie_ I found what I was looking for, thanks for the help and guiding man |