[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] html->sxml (html-parser egg) does not decode entitie

From: Alex Shinn
Subject: Re: [Chicken-users] html->sxml (html-parser egg) does not decode entities in html attributes, ideas why?
Date: Sat, 23 Nov 2013 22:14:58 +0900

On Sat, Nov 23, 2013 at 11:19 AM, Jim Ursetto <address@hidden> wrote:

Looks like there's a regression of sorts in html-parser 0.5.1.


#;> (html->sxml "<foo bar></foo>")
(*TOP* (foo (@ (bar))))


#;> (html->sxml "<foo bar></foo>")
Error: (cadr) bad argument type: ()

Oops, fixed.

Arguably, empty attributes should result in a value of "" as per ; for example,

#;> (html->sxml "<foo bar></foo>")
(*TOP* (foo (@ (bar ""))))

although I'd also be satisfied with a return to the status quo ante, in which a null cdr signifies empty.

Given that I can see pros and cons to both approaches,
I'm inclined to leave as-is for now.



On Sep 8, 2013, at 7:30 AM, Alex Shinn <address@hidden> wrote:

On Thu, Sep 5, 2013 at 12:39 AM, Philip Kent <address@hidden> 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.


Chicken-users mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]