Channel #semsol: Logs

This is a public chat log generated from the #semsol IRC channel.

09:54:59 kwijibo: bengee ping
09:55:26 bengee: pong
09:55:32 kwijibo: ;)
09:55:54 kwijibo: yeah, the problem is that XML Literals are coming out different from how they go in
09:56:43 bengee: but isn't that ok in UTF-8 contexts?
09:57:03 kwijibo: I dunno
09:57:26 kwijibo: it's not ok for me, because I can't roundtrip xmlliterals
09:57:31 bengee: keeping the ents might break rdf/xml, now?
09:57:40 kwijibo: i'm not sure what the ideal behaviour would be
09:57:54 bengee: s/now/no/
09:57:55 kwijibo: but this looks wwrong: I put in: <div><br/> &lt;p&gt;hello world&lt;/p&gt;</div>
09:58:12 kwijibo: and get out <div><br></br> <p>hello world</p></div>
09:58:58 bengee: don't think I can do anything about that, I'm just passing through what the XML parser gives me, I think
09:59:13 kwijibo: yeah, that's what i was afriad of :(
10:03:17 bengee: if you don't type the literal, but make it a cdata section, it should be kept as is
10:04:07 bengee: rss1-style
10:06:45 kwijibo: yeah
10:07:15 kwijibo: it's shame you have to know to do that though
10:21:35 kwijibo: what if ARC were to manually seek out xmlliterals, check for well-formedness, and then encase in a cdata section
10:22:35 bengee: I think the markup is entity-decoded at this stage already
10:22:58 kwijibo: ah - you're streaming the parsing eh?
10:23:08 bengee: yes
10:23:56 kwijibo: why did they make it so f**kin difficult :p
10:25:10 bengee: well, the xml parser *has* to decode ents, otherwise it'd have to remember doctypes, too
10:25:31 kwijibo: yeah
10:26:08 kwijibo: i mean rdf/xml seems ridiculously difficult to write a perfect parser for
10:26:23 bengee: oh, that one. yeah, true
10:26:44 kwijibo: and the xmlliterals is the hardest part
10:27:15 kwijibo: well - maybe not!
10:27:34 bengee: collections are painful
14:13:31 scor: bengee: you got mail - you can also reply here if you like
14:42:53 kwijibo: bengee: I think I've fixed it
14:43:49 kwijibo: i just added $d = htmlspecialchars($d); to the start of function h6Cdata($d)
14:45:01 kwijibo: hey danbri
14:45:07 kwijibo: did you hear back from peter mika?
14:58:50 kwijibo: bengee: that should of course be: $d = htmlspecialchars($d, ENT_NOQUOTES);