Issue #61 resolved

hasClass seems to match for child elements

Matt Goodall
created an issue

JS ...

f = $('<div><div class="hentry"></div></div>') f.hasClass("hentry") false

Python ...

f = pq('<div><div class="hentry"></div></div>') f.hasClass("hentry") True

Comments (2)

  1. Matt Goodall reporter

    Let's try that again.

    JS ...

    > f = $('<div><div class="hentry"></div></div>')
    > f.hasClass("hentry")
    false
    

    Python ...

    >>> f = pq('<div><div class="hentry"></div></div>')
    >>> f.hasClass("hentry")
    True
    
  2. Log in to comment