fluid-work IRC Logs-2009-07-17

[06:40:54 EDT(-0400)] * justin_o (n=jmo@CPE001b63f2cc0e-CM0011aec4b062.cpe.net.cable.rogers.com) has joined #fluid-work
[07:13:06 EDT(-0400)] * heidi_ (n=thesumme@70.31.82.166) has joined #fluid-work
[08:22:57 EDT(-0400)] * justin_o (n=jmo@CPE001b63f2cc0e-CM0011aec4b062.cpe.net.cable.rogers.com) has joined #fluid-work
[09:19:31 EDT(-0400)] * yura (n=yura@142.150.82.114) has joined #fluid-work
[09:26:46 EDT(-0400)] * justin_o (n=jmo@CPE001b63f2cc0e-CM0011aec4b062.cpe.net.cable.rogers.com) has left #fluid-work
[09:28:41 EDT(-0400)] * jsilvaa (n=jsilva@142.150.82.73) has joined #fluid-work
[09:46:17 EDT(-0400)] * justin_o (n=jmo@99.227.23.154) has joined #fluid-work
[10:03:48 EDT(-0400)] * davetrey (n=davetrey@73-32-122.uoc.es) has joined #fluid-work
[10:06:39 EDT(-0400)] * EricDalquist (n=dalquist@bohemia.doit.wisc.edu) has joined #fluid-work
[10:12:13 EDT(-0400)] * clown (n=clown@142.150.154.101) has joined #fluid-work
[10:22:57 EDT(-0400)] <jsilvaa> hola all... quick question: does "InfusionAll" include jQuery?
[10:25:52 EDT(-0400)] <jsilvaa> anyone?
[10:29:16 EDT(-0400)] <clown> hi everyone – is there a HTML expert in the room? I have a question about acquiring text.
[10:29:48 EDT(-0400)] <jsilvaa> clown: do you have an answer for me?
[10:30:07 EDT(-0400)] <jsilvaa> I can try answering yours
[10:30:27 EDT(-0400)] <clown> jsilvaa: nope. it's been more than a year since I built a distro of fluid (it wasn't even called "infusion" back then).
[10:30:36 EDT(-0400)] * athena (n=athena@adsl-75-58-122-144.dsl.wlfrct.sbcglobal.net) has joined #fluid-work
[10:30:59 EDT(-0400)] <jsilvaa> aw (sad)
[10:31:09 EDT(-0400)] <clown> jsilvaa: however, I would imagine that "InfusionAll" implies "everything" including jQuery...
[10:31:32 EDT(-0400)] <clown> how does this sound: build it yourself, and see what you get?
[10:31:41 EDT(-0400)] <jsilvaa> yes, that's what i thought but Yura made me doubt
[10:31:51 EDT(-0400)] <jsilvaa> cool... will do
[10:32:03 EDT(-0400)] <clown> I know that building is more time consuming, and if someone knows the answer, you get there quicker.
[10:33:31 EDT(-0400)] <clown> okay, my question: you can sometimes put text content in CSS. That content will not show up in the DOM. It will show up onscreen. Is there any way in JavaScript to get that content? I tried innerHTML, but that didn't show it.
[10:36:00 EDT(-0400)] <clown> jsilvaa ^
[10:38:40 EDT(-0400)] <jsilvaa> clown: what about something like... $("#id").css("field","value");
[10:39:06 EDT(-0400)] <justin_o> jsilvaa: sorry... didn't see your message there... yes... InfusionAll does include jQuery
[10:39:18 EDT(-0400)] <jsilvaa> that's to change... retrieving should be similar
[10:39:25 EDT(-0400)] <jsilvaa> thanks justin_o
[10:39:40 EDT(-0400)] <jsilvaa> yura: embarrasing
[10:40:09 EDT(-0400)] <jsilvaa> clown: is that what you meant?
[10:40:11 EDT(-0400)] <yura> jsilvaa: thank you
[10:40:25 EDT(-0400)] <clown> jsilvaa: I'll give it a try, although it means I must use jQuery. Is there a vanila JS solution? Also, are "field" and "value" literals?
[10:40:47 EDT(-0400)] * michelled (n=michelle@142.150.154.193) has joined #fluid-work
[10:40:48 EDT(-0400)] * jessm (n=Jess@71.232.1.65) has joined #fluid-work
[10:41:21 EDT(-0400)] <clown> jsilvaa: actually, I'm not sure that's what I meant. I don't want the css for that element, I just want all of its text content.
[10:41:33 EDT(-0400)] * clown concoting an example.
[10:42:50 EDT(-0400)] <jsilvaa> clown: ooh I get it... I haven't done that but it'd be useful... lemme know if you find the answer
[10:43:28 EDT(-0400)] <jsilvaa> clown: what about parsing the css file from js?
[10:45:11 EDT(-0400)] <clown> jsilvaa: here is the example: http://clown.atrc.utoronto.ca/Fluid/aria/cssContent.html. Note that the "Special!" at the beginning of the 2nd paragraph is defined in the CSS, and doesn't show up in the DOM. Yet, the complete text of that paragraph includes the word "Special!".
[10:46:47 EDT(-0400)] <clown> jsilvaa: I don't one has to parse the CSS in JS. One may be able to get that text by accessing the styles and looking specifically for any "content" selector. It might be possible...
[10:47:32 EDT(-0400)] <clown> justin_o: have you seen my discussion with jsilvaa ? Any thoughts?
[10:47:54 EDT(-0400)] <justin_o> clown: i'll catch up and let you know
[10:48:02 EDT(-0400)] <clown> justin_o: thanks.
[10:48:16 EDT(-0400)] <jamon> clown: what about setting an attr for the content and then use getElementsByAttribute?
[10:48:23 EDT(-0400)] <jsilvaa> so this: $(".special").css("content"); wouldn't work?
[10:49:02 EDT(-0400)] <clown> jamon: I have no control over how that markup is generated. I'm looking for a general technique to get that text.
[10:49:13 EDT(-0400)] <jsilvaa> clown: I don't really know so I'll stop distracting you
[10:49:18 EDT(-0400)] <jamon> ah
[10:49:44 EDT(-0400)] <clown> jsilvaa: i'll try your suggestion (or a vanilla JS version of it). And, thanks for your ideas.
[10:49:56 EDT(-0400)] <jsilvaa> np
[10:52:14 EDT(-0400)] <clown> jsilvaa: FYI an update. Assuming I have the element in "foo", then foo.style.content returns "" (the empty string).
[10:52:43 EDT(-0400)] <jsilvaa> I see
[10:52:59 EDT(-0400)] <clown> maybe I need to get it throught the computed style...
[10:53:33 EDT(-0400)] * clown stepping away for a moment.
[11:01:38 EDT(-0400)] <justin_o> clown: take a look at this page http://www.howtocreate.co.uk/tutorials/javascript/domcss
[11:01:52 EDT(-0400)] <justin_o> look in the Reading applied element styles sections
[11:02:13 EDT(-0400)] <justin_o> it looks like you should be able to find it by using getComputedStyle
[11:03:35 EDT(-0400)] * clown has returned.
[11:03:51 EDT(-0400)] * clown justin_o: looking at that tutorial
[11:06:15 EDT(-0400)] <clown> justin_o: if I followed their directions correctly, I get "none" for the computed content style.
[11:07:12 EDT(-0400)] <clown> aside: it looks like putting text content in CSS makes that content really inaccessible. Maybe screen reader manufacturers have some insight.
[11:08:09 EDT(-0400)] <justin_o> did you specify that the pseudo element "before"
[11:08:23 EDT(-0400)] <justin_o> yes... that could be a problem if they are looking for it from the DOM
[11:10:59 EDT(-0400)] <clown> justin_o: given the element is stored in variable "bar", I did barStyles=window.getComputedStyle (bar, null); Then I checked the "content" property of barStyles.
[11:11:28 EDT(-0400)] <clown> where do I specify the "before" pseudo class?
[11:11:37 EDT(-0400)] <justin_o> i think instead of null
[11:11:42 EDT(-0400)] <clown> d'oh!
[11:12:42 EDT(-0400)] <clown> woohoo! This gets it window.getComputedStyle (bar, ":before")
[11:15:59 EDT(-0400)] <clown> thanks justin_o
[11:16:28 EDT(-0400)] <justin_o> np (smile)
[11:18:00 EDT(-0400)] <clown> justin_o: do you know if this is the only place that the content selector is used – with the :before and :after classes? Or are there other ways to put text content into CSS?
[11:19:13 EDT(-0400)] <justin_o> that i don't know.... fj4000 would probably know but he is off today
[11:21:28 EDT(-0400)] <clown> okay. this is relevant to the aria text equivalent computation. I'm just going to say it's a hard case to handle, and hope someone in the working group is more versed in CSS/JavaScript than me, and will say: "oh, it's simple. you just do this..."
[11:21:54 EDT(-0400)] <clown> and, maybe I'll touch base with fj4000 when he's around.
[11:22:06 EDT(-0400)] <justin_o> http://www.w3.org/TR/CSS2/generate.html#content
[11:22:14 EDT(-0400)] <justin_o> that says it is just with :before and :after
[11:23:02 EDT(-0400)] <justin_o> good luck
[11:25:37 EDT(-0400)] <clown> justin_o: oh, thank you very much for that link. It's always good to use w3c specs when writing another w3c spec. That is, I can point the aria text equiv. computation at that CSS2 restriction.
[11:27:59 EDT(-0400)] <justin_o> thanks... glad I could be of assistance... (smile)
[11:35:12 EDT(-0400)] <clown> justin_o: gah... the "value" of the content selector can be a URI. Can that ever point to text? Or just images?
[11:40:38 EDT(-0400)] <justin_o> hmm... i'm not sure... i'm kind of curious what would happen if you pointed at some server side php or something....
[11:41:59 EDT(-0400)] <clown> actually, I think I'm overreacting. Let the user agent do work. Just ask for the :before and/or :after in the computed style, and the content should be what you want. hmmmmm....
[11:44:23 EDT(-0400)] * michelled (n=team@142.150.154.193) has joined #fluid-work
[11:44:59 EDT(-0400)] <justin_o> that sounds reasonable
[11:45:10 EDT(-0400)] * michelled (n=team@142.150.154.193) has left #fluid-work
[12:16:19 EDT(-0400)] * michelled (n=team@142.150.154.193) has joined #fluid-work
[13:25:04 EDT(-0400)] * mackrauss (n=mackraus@142.150.154.128) has joined #fluid-work
[13:26:02 EDT(-0400)] * mackrauss (n=mackraus@142.150.154.128) has joined #fluid-work
[13:26:28 EDT(-0400)] * mackrauss (n=mackraus@142.150.154.128) has left #fluid-work
[13:26:35 EDT(-0400)] * mackrauss (n=mackraus@142.150.154.128) has joined #fluid-work
[13:29:18 EDT(-0400)] * justin_o (n=jmo@CPE001b63f2cc0e-CM0011aec4b062.cpe.net.cable.rogers.com) has joined #fluid-work
[13:42:19 EDT(-0400)] <mackrauss> yura I have some questions regarding CouchDB
[15:53:46 EDT(-0400)] * justin_o (n=jmo@CPE001b63f2cc0e-CM0011aec4b062.cpe.net.cable.rogers.com) has joined #fluid-work
[22:59:10 EDT(-0400)] * yura (n=yura@bas3-toronto06-1177890603.dsl.bell.ca) has joined #fluid-work