Skip to content

slow .text()  #53

Closed
Closed

Description

@ilushka85

.text() works very slow sometimes freezing indefinitely:

example

Url:

http://www.ebay.com/itm/Samsung-Galaxy-S-Captivate-SGH-I897-16GB-Black-Unlocked-Smartphone-/271090276288?pt=Cell_Phones&hash=item3f1e3d57c0

code:

htmlDOC[".prodDetailSec table"].Text();

Activity

  1. added a commit that references this issue on Oct 30, 2012
  2. jamietre commented on Oct 30, 2012

    @jamietre
    Owner

    Fixed in last push.

  3. ilushka85 commented on Oct 30, 2012

    @ilushka85
    Author

    What was the cause? ALso sometimes text() returns nothing when there are a bunch of children. Has this been corrected also?

  4. jamietre commented on Oct 30, 2012

    @jamietre
    Owner

    Part of the 1.3 update involved moving all the rendering code out of the elements themselves. Text() was involved in that and I had basically just left in a line from the old code that created recursion, but for some reason didn't cause the tests to fail.

    I'm not sure if the other problem is fixed - I didn't know about it - but certainly could be related. If you're still seeing it can you point me to something that fails?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions