Comments (7)
It's on this line the script is timed out :
<php>$section_tableau_ligne_element->find('select[name="onglet[]"]:has(option[va
lue='.$section['onglet'].'])').addClass('onglet_desactive');</php>
The selector text is : "select[name="onglet[]"]:has(option[value=12])"
Original comment by [email protected]
on 18 Sep 2008 at 9:18
from phpquery.
Original comment by [email protected]
on 18 Sep 2008 at 9:31
- Changed title: Selecting attributes with brackets
- Changed state: Started
- Added labels: Priority-High
- Removed labels: Priority-Medium
from phpquery.
Can't reproduce it, brackets are fine, selector passes also just fine. Can you
post a
line number of fatal error ?
Original comment by [email protected]
on 18 Sep 2008 at 9:43
from phpquery.
The error occurs on the line number of phpQuery file.
I think it's not the attribute with bracket the problem.
Cause I use it in other place, and it work well.
The real problem seems to be the ":has()" selector.
Perhaps the Xpath is so complicated then?
Original comment by [email protected]
on 18 Sep 2008 at 10:26
from phpquery.
line 3353 ;)
Original comment by [email protected]
on 18 Sep 2008 at 10:26
from phpquery.
I need more information to reproduce this issue. Full problematic source code
and
HTML may be needed, but there are couple of hints you can give before:
1. is select element detached from DOM (do it has parent) ?
2. if yes, how many parents ?
3. what operations has been done prior to problematic code ?
4. how many nodes are present in document ? pq('*')->size() + all detached
5. how many documents are created in problematic script ?
6. if you remove :has pseudoclass, does the problem occures ?
7. can you supply stack trace ? eg xdebug extension dumps it
8. add `phpQuery::$debug = true;` on beggining of the script, then send me
output by
@ or place on web, because it will be long...
Original comment by [email protected]
on 18 Sep 2008 at 10:58
- Changed title: Memory issues
from phpquery.
Fixed in r110 :)))
This was NASTY bug which could affect almost everyone, so big thx for
cooperation in
finding it out !
Problem was manipulating on nodes which one of parents were detached...
Original comment by [email protected]
on 22 Sep 2008 at 2:37
- Changed state: Fixed
from phpquery.
Related Issues (20)
- Unable to install using pear HOT 7
- pear repo packages.xml seems broken
- Wrong parsed HTML from HTML cleared by Tidy
- default: added to all HTML tags via Clone & PrependTo
- typo in line 517
- when program is utf-8,but remote page is gbk , the wrong has occur
- A PHP Error was encountered
- How to print the whole array of result without using foreach
- Notice (8): Undefined variable: hltml [phpQuery\DOMDocumentWrapper.php, line 389]
- GPL ?
- DOMDocument::importNode(): Cannot import: Node Type Not Supported
- Nested elements in script tag / create elements with jQuery
- Case-sensitive tag selectors HOT 3
- phpquery-onefile.php line 517
- Using multiple selectors return element list in wrong order
- Patch for /branches/dev/demo.php
- elements with dots "." in their id cannot be selected
- Getting Started Page
- How to use http-proxy for getBrowser & ajax requests? HOT 1
- your api docs have been hacked
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpquery.