Re: [Chicken-users] html-sxml (html-parser egg) does not decode entities in html attributes, ideas why?

2014-05-08 Thread Andy Bennett
Hi, Thanks for your email. I'm somewhat confused by what you say. Through investigation, it seems html-sxml will decode entities, so long as they aren't within a HTML element attribute. Could you clarify on whether that default applies globally or just to attributes? Yes, sorry, I misread

Re: [Chicken-users] html-sxml (html-parser egg) does not decode entities in html attributes, ideas why?

2014-05-08 Thread Alex Shinn
On Fri, May 9, 2014 at 6:44 AM, Andy Bennett andy...@ashurst.eu.org wrote: Empty attributes now seem to decode to the string (). Fixed. During quot; deserialisation when inside an attribute, we seem to get data from earlier in the stream introduced: I couldn't reproduce this. Could you

Re: [Chicken-users] html-sxml (html-parser egg) does not decode entities in html attributes, ideas why?

2014-05-08 Thread Andy Bennett
Hi, Empty attributes now seem to decode to the string (). Fixed. Thanks! :-) That works for me now: - #;4 (html-sxml empty) (*TOP* (div (@ (data )) empty)) - During quot; deserialisation when inside an attribute, we seem to get data from earlier in the stream introduced: I

Re: [Chicken-users] html-sxml (html-parser egg) does not decode entities in html attributes, ideas why?

2014-05-08 Thread Alex Shinn
On Fri, May 9, 2014 at 8:26 AM, Andy Bennett andy...@ashurst.eu.org wrote: Which CHICKEN are you using? I can reproduce it with 0.5.2 on 4.9.0rc1: Nevermind, I had only checked 0.5.3. I can see it in 0.5.2. ___ Chicken-users mailing list

Re: [Chicken-users] html-sxml (html-parser egg) does not decode entities in html attributes, ideas why?

2013-11-23 Thread Alex Shinn
On Sat, Nov 23, 2013 at 11:19 AM, Jim Ursetto zbignie...@gmail.com wrote: Alex, Looks like there's a regression of sorts in html-parser 0.5.1. 0.5.0 #; (html-sxml foo bar/foo) (*TOP* (foo (@ (bar 0.5.1 #; (html-sxml foo bar/foo) Error: (cadr) bad argument type: () Oops, fixed.

Re: [Chicken-users] html-sxml (html-parser egg) does not decode entities in html attributes, ideas why?

2013-11-22 Thread Jim Ursetto
Alex, Looks like there's a regression of sorts in html-parser 0.5.1. 0.5.0 #; (html-sxml foo bar/foo) (*TOP* (foo (@ (bar 0.5.1 #; (html-sxml foo bar/foo) Error: (cadr) bad argument type: () Arguably, empty attributes should result in a value of as per

Re: [Chicken-users] html-sxml (html-parser egg) does not decode entities in html attributes, ideas why?

2013-09-14 Thread Philip Kent
...@knodium.commailto:phi...@knodium.com Cc: chicken-users@nongnu.orgmailto:chicken-users@nongnu.org chicken-users@nongnu.orgmailto:chicken-users@nongnu.org Subject: Re: [Chicken-users] html-sxml (html-parser egg) does not decode entities in html attributes, ideas why? On Thu, Sep 5, 2013 at 12:39 AM

Re: [Chicken-users] html-sxml (html-parser egg) does not decode entities in html attributes, ideas why?

2013-09-08 Thread Alex Shinn
On Thu, Sep 5, 2013 at 12:39 AM, Philip Kent phi...@knodium.com wrote: Hi Alex, Excellent! Thanks for looking into it and for the tip re custom parsers - I was trying to understand that code! It should work now, let me know if you have any problems. -- Alex

Re: [Chicken-users] html-sxml (html-parser egg) does not decode entities in html attributes, ideas why?

2013-09-04 Thread Philip Kent
From: Alex Shinn alexsh...@gmail.com Sent: 04 September 2013 03:51 To: Philip Kent Cc: chicken-users@nongnu.org Subject: Re: [Chicken-users] html-sxml (html-parser egg) does not decode entities in html attributes, ideas why? On Tue, Sep 3, 2013 at 11:19 PM, Philip

Re: [Chicken-users] html-sxml (html-parser egg) does not decode entities in html attributes, ideas why?

2013-09-04 Thread Philip Kent
-users] html-sxml (html-parser egg) does not decode entities in html attributes, ideas why? On Wed, Sep 4, 2013 at 8:23 PM, Philip Kent phi...@knodium.commailto:phi...@knodium.com wrote: Hi Alex, Thanks for your email. I'm somewhat confused by what you say. Through investigation, it seems html

[Chicken-users] html-sxml (html-parser egg) does not decode entities in html attributes, ideas why?

2013-09-03 Thread Philip Kent
Hi all, I noticed an issue today with the html-parser egg, where it does not seem to decode entities within an attribute of an element, I have included an example below. #;14 (html-sxml div data-foo=\quot;\) (*TOP* (div (@ (data-foo quot; Expected: (*TOP* (div (@ (data-foo \ I was

Re: [Chicken-users] html-sxml (html-parser egg) does not decode entities in html attributes, ideas why?

2013-09-03 Thread Matt Gushee
On Tue, Sep 3, 2013 at 8:51 PM, Alex Shinn alexsh...@gmail.com wrote: html-parser processes entities, but the default for html-sxml is just to leave the encoded as-is. I'm not sure if that's the best default, I'm not going to suggest that this is a major problem, especially since you are not