meta value is not parsed correctly #21

Open
jeremys opened this Issue Apr 12, 2011 · 0 comments

Comments

Projects
None yet
1 participant

jeremys commented Apr 12, 2011

Hi there,

If you look at a live journal entry like this one: http://cananian.livejournal.com/60624.html
You can see the

When doing: description = htmlparser.DomUtils.getElements( { tag_name: "meta", name: "description" }, dom);
Instead of having a result like this:

    [ { raw: 'meta name="description" value="the whole post in there"/',  
        data: 'meta name="description" value="the whole post in there"/',  
        type: 'tag',  
        name: 'meta',  
        attribs:   
         { name: 'description',  
           value: 'the whole post in there' } } ]  

I have this:

    [ { raw: 'meta name="description" value="the whole post in there"/',
        data: 'meta name="description" value="the whole post in there"/',
        type: 'tag',
        name: 'meta',
        attribs: 
         { name: 'description',
           value: 'the whole post in there' ,
           the: 'the',
           whole: 'whole',
           post: 'post',
           in: 'in',
           there: 'there' } } ]

Hope it helps!

kirbysayshi pushed a commit to kirbysayshi/node-htmlparser that referenced this issue Dec 19, 2013

Merge pull request #21 from lahmatiy/master
fix of htmlparser.DomUtils.getOuterHTML for directives
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment