chirilo / phpquery Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/phpquery
Automatically exported from code.google.com/p/phpquery
What steps will reproduce the problem?
1. Run phpQuery under PHP 5 with error_notice of E_ALL
Patch is attached.
I'm a bit annoyed that instanceof isn't happy if the second argument isn't
a variable. If there's a non-deprecated way around that, I'd love to learn
it...
Original issue reported on code.google.com by [email protected]
on 3 Sep 2007 at 3:52
Attachments:
Transparent JS->PHP layer.
Feautures cross domain ajax with server-side jQuery transformations (via
phpQuery).
Could be used in plainTemplates for template fetching directly from client.
Original issue reported on code.google.com by [email protected]
on 15 Aug 2007 at 10:25
Example code causing the problem:
pq('body')->append('żźć');
Original issue reported on code.google.com by [email protected]
on 27 Jul 2008 at 8:02
What steps will reproduce the problem?
<?php
$myFirstPQ = phpQuery:newDocument($myFirstHTMLCode);
$mySecondPQ = phpQuery:newDocument($mySecondHTMLCode);
$myFirstPQ_element = $myFirstPQ->find('#myElement');
$mySecondPQ_elements = $mySecondPQ->find('body:first > *');
foreach ($mySecondPQ_elements as $element)
$myFirstPQ_element->append($element);
?>
What is the expected output? What do you see instead?
Appended an element from a document into another document.
<error>Fatal error: Uncaught exception 'DOMException' with message 'Wrong
Document Error'</error>
What version of the product are you using? On what operating system?
0.9.1 on a standart Apache server with PHP 5.2.6
Original issue reported on code.google.com by [email protected]
on 28 Jul 2008 at 9:02
Sibling selectors:
* div + div
* div ~ div
Original issue reported on code.google.com by [email protected]
on 15 Aug 2007 at 10:27
Make a fake API for Zend_Http_Client which mimics XMLHttpRequest:
http://en.wikipedia.org/wiki/XMLHttpRequest
Original issue reported on code.google.com by [email protected]
on 22 Sep 2008 at 8:56
jQuery 1.3 compatibility
Original issue reported on code.google.com by [email protected]
on 20 Sep 2008 at 2:23
Tutorials which should be written:
* Differences against jQuery
* Work with many documents simultaneously
Original issue reported on code.google.com by [email protected]
on 25 Jul 2008 at 1:59
Easy API to adding new pseudoclasses using callbacks.
Original issue reported on code.google.com by [email protected]
on 19 Sep 2008 at 9:13
phpQuery::newDocument(new DOMDocument());
Original issue reported on code.google.com by [email protected]
on 29 Jul 2008 at 12:01
What steps will reproduce the problem?
1. add a tag with class="someclass"
2. pq(".someclass")->text("something<not a tag>");
What is the expected output? What do you see instead?
All the someclass should be filled with text "Something<not a tag>".
Original content of someclass is kept
What version of the product are you using? On what operating system?
9.4rc1 Linux
Please provide any additional information below.
Here is a quick fix I added. Haven't thoroughly tested.
Replace text function with following.
public function text($text = null) {
if($text == null) {
$return = '';
foreach( $this->elements as $node ) {
$return .= $node->textContent;
}
return $return;
} else {
return($this->html(htmlentities($text)));
}
}
Original issue reported on code.google.com by [email protected]
on 1 Oct 2008 at 5:29
IMHO excellent plugin:
http://plugins.jquery.com/project/AttributeSelector
Original issue reported on code.google.com by [email protected]
on 20 Sep 2008 at 2:35
What steps will reproduce the problem?
1. get a set of element like that $myPhpQuery = $myPhpQuery->find('ul')
2. filtered it with $myPhpQuery->filter('.myClass1,.myClass2')
3. this only get the element matched ".myClass1" but not those matched
".myClass2".
What is the expected output? What do you see instead?
Don't select the element which have the "myClass2" class.
What version of the product are you using? On what operating system?
r47
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 9 Sep 2008 at 2:55
Mostly needed are test for node manipulating methods and operations on
multiplie documents same time.
Original issue reported on code.google.com by [email protected]
on 15 Aug 2007 at 10:37
Using method overloading with __call().
Original issue reported on code.google.com by [email protected]
on 15 Aug 2007 at 10:28
Things to do:
* [@attribute] to [attribute]
* :has pseudoclass
* .slice()
* :contains(text) pseudoclass
* :header pseudoclass ?
* .wrapInner() / .wrapAll()
* .replaceWith() / .replaceAll()
* .map()
* .prevAll() / .nextAll()
* .hasClass()
* .andSelf()
* .contents()
* Complex :not() eg $("li:not(.active,.hover,:contains(test))")
Things to remove:
* xpath
* .gt()
* .lt()
* .contains('text')
According to:
1. http://docs.jquery.com/Release:jQuery_1.2
2. http://docs.jquery.com/Release:jQuery_1.2.2
Original issue reported on code.google.com by [email protected]
on 24 Jan 2008 at 2:30
What steps will reproduce the problem?
1. Create a string which contain a character like "é" and html code (i.e.
"<li>C'est pour testé</li>"
2. append it using the append() method
3. it display a strange characters cause bad UTF-8 encode/decode?
What is the expected output? What do you see instead?
If I use the same string without html code (i.e. : "C'est pour testé"), It
work well!
What version of the product are you using? On what operating system?
Last version (0.9.2 Beta)
Please provide any additional information below.
I try to debug it, find that the error occurs in the insert() methods at
line 1748,1749 (in the actual dev source).
Original issue reported on code.google.com by [email protected]
on 13 Aug 2008 at 5:33
Fixed in 0.9.4 RC1.
Original issue reported on code.google.com by [email protected]
on 22 Sep 2008 at 11:04
Some methods are renamed due to eg PHP keywords, or other reasons.
They should be aliased to proper names using __call().
Original issue reported on code.google.com by [email protected]
on 10 Sep 2008 at 1:11
Benchmarks of various code parts should be made.
Some sort of cache engine may be a good idea.
Original issue reported on code.google.com by [email protected]
on 29 Jul 2008 at 11:27
On UTF-8 everything seemes to work fine.
Original issue reported on code.google.com by [email protected]
on 15 Aug 2007 at 10:38
What steps will reproduce the problem?
1. using somthing like that
<php>$section_tableau_ligne_element->find('select[name="onglet[]"]
option[value='.$section['onglet'].']')->is('.onglet_desactive')</php>
What is the expected output? What do you see instead?
Normal process. Instead of that I have on error : "Fatal error: Allowed
memory size of 134217728 bytes exhausted (tried to allocate 12 bytes)"
What version of the product are you using? On what operating system?
r56
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 18 Sep 2008 at 9:15
Only local iframes for files, and only same domain for ajax requests.
Suggestions ?
Original issue reported on code.google.com by [email protected]
on 1 Sep 2008 at 12:35
What steps will reproduce the problem?
1. using <php>$myPhpQuery->attr('attributeName',null)->end();</php>
2.
3.
What is the expected output? What do you see instead?
I should chaining other method after end() but can't, instead of that it
display me that <error>Fatal error: Call to a member function end() on a
non-object</error>
What version of the product are you using? On what operating system?
r167
Please provide any additional information below.
I really understand why it do that, cause using a null second argument make
the function return te attribute "attributeName" but sometimes I include
some value from BDD and actually I have to test it if NULL or not before
insert it :(.
Original issue reported on code.google.com by [email protected]
on 2 Oct 2008 at 7:55
Those are:
* :even
* :odd
* and all form specific
Original issue reported on code.google.com by [email protected]
on 15 Aug 2007 at 10:32
There's no test method? (hasClass(), is(), and other like in jQuery)
Original issue reported on code.google.com by [email protected]
on 18 Sep 2008 at 9:08
Implement extended callback support in all callback methods.
http://code.google.com/p/phpquery/wiki/Callbacks
Some structure wrapping whole callback (method and data) is needed.
Dedicated callback class is a good choice but may create naming collision.
Target methods:
* ajax related
* events releted
* type-changing methods
* text
* htmlOuter
* get
Original issue reported on code.google.com by [email protected]
on 2 Oct 2008 at 11:57
Actual implementation preserves reversable methods changes inside called
object.
{{{
$test = phpQuery('a');
$test2 = clone $test;
$test->eq(0);
// this IS true
print $test != $test2;
}}}
Proper implementation shouldn't.
{{{
$test = phpQuery('a');
$test2 = clone $test;
$test->eq(0);
// this IS true
print $test == $test2;
}}}
Original issue reported on code.google.com by [email protected]
on 24 Jan 2008 at 4:16
Dont know what will be argument interface, but CLI should support multiply
operations.
Original issue reported on code.google.com by [email protected]
on 19 Sep 2008 at 6:29
1. I called your test.php-script under Linux
2. Got: Fatal error: Call to undefined method DOMElement::addClass() in
/var/www/utelisys/sms-mgr/unstable/js/pq/test.php.orig on line 13
3. used version phpQuery-0.9.1-beta2.zip
Original issue reported on code.google.com by [email protected]
on 25 Aug 2008 at 5:24
Mostly copied from [http://docs.jquery.com/Main_Page jQuery docs].
Original issue reported on code.google.com by [email protected]
on 15 Aug 2007 at 10:35
Copy from each().
Original issue reported on code.google.com by [email protected]
on 29 Jul 2008 at 12:13
Those are:
* css()
* wrap()
* val()
Original issue reported on code.google.com by [email protected]
on 15 Aug 2007 at 10:32
Events implementation will probably need new class.
Original issue reported on code.google.com by [email protected]
on 1 Sep 2008 at 1:19
Will be usefull in feauture.
Original issue reported on code.google.com by [email protected]
on 15 Aug 2007 at 10:42
There should be some script timeout extender (not request timeout) for ajax
calls, but it's use should be optional.
Original issue reported on code.google.com by [email protected]
on 18 Sep 2008 at 9:44
What steps will reproduce the problem?
1. Get this string "La Thermo-sonde de cuisson vous permet de cuire à la
perfection au four comme au bain-marie. Température: entre <b>0°C et
210°C</b>."
2. Inserting it in a P element using
<php>$myPhpQuery->find('p#myP')->html($myString);</php>
3.
What is the expected output? What do you see instead?
Should display "0°C et 210°C" in bold, instead of that it display "<b>0°C
et 210°C</b>".
What version of the product are you using? On what operating system?
r168
Please provide any additional information below.
Perhaps it don't detect the markup...
Original issue reported on code.google.com by [email protected]
on 2 Oct 2008 at 1:30
I think this is one of the most important plugins to integrate:
http://docs.jquery.com/Plugins/Metadata
Original issue reported on code.google.com by [email protected]
on 12 Sep 2008 at 12:51
1. XML header "<?xml version="1.0" encoding="UTF-8"
standalone="yes"?>"
2. Maybe $pq->xml() just like $pq->html() ? How jQuery handle this ?
3. Check str_replaces in phpQuery::fixXhtml()
Original issue reported on code.google.com by [email protected]
on 30 Jul 2008 at 10:41
What steps will reproduce the problem?
1. download the package
2. open phpQuery.php in an editor
3. go to the end of the file
4. take a look at the end
5. locate the ending php delimiter "?>"
6. take a look what follows after the delimiter
What is the expected output? What do you see instead?
expected is that there is no output. infact there is.
What version of the product are you using? On what operating system?
phpQuery-0.9.4-rc1 win32
Please provide any additional information below.
to fix it, just remove the ending ?>. this is good practise.
Original issue reported on code.google.com by [email protected]
on 4 Oct 2008 at 6:37
Hello. Is there any way to use namespaces in the document? CSS3 | selector
- http://www.w3.org/TR/css3-namespace/
Do You plan this functionality?
Original issue reported on code.google.com by [email protected]
on 20 Aug 2008 at 9:19
What steps will reproduce the problem?
1. get an element using <php>$mySecondPQ =
$myFirstPQ->find('#myElement');</php>
2. clone it in a for statement <php>for ($i=0;$i<4;$i++)
$mySecondPQ->_clone()->attr('id','')->addClass($i.',')->insertBefore($mySecondPQ
);</php>
3. <php>echo $myFirstPQ->find('#myElement')->parent()->html();</php>
What is the expected output? What do you see instead?
The expected output is something like that : <display><div
class="0,"></div><div class="1,"></div><div class="2,"></div><div
class="3,"></div><div id="myElement"></div></display>.
Instead of that I've : <display><div class="0,"></div><div class="0,
1,"></div><div class="0, 1, 2,"></div><div class="0, 1, 2, 3,"></div><div
id="myElement"></div></display>
What version of the product are you using? On what operating system?
r51
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 17 Sep 2008 at 12:22
wrap() using single element acts as before().
Original issue reported on code.google.com by [email protected]
on 29 Jul 2008 at 11:24
I'm thinking about interface similar to this plugin:
http://svn.coderepos.org/share/lang/javascript/javascript-xpath/bindings/jquery/
release/xpath4jquery-latest.js
Original issue reported on code.google.com by [email protected]
on 17 Sep 2008 at 8:53
This might need a plugin.
Probably proper component from Zend framework will be used.
Original issue reported on code.google.com by [email protected]
on 15 Aug 2007 at 10:31
What steps will reproduce the problem?
1. using the HTML code like this "$myHTML = '<ul><li></li><li><ul
id="myULRef"><li><ul><li
id="myLIRef"></li></ul></li></ul></li><li></li></ul>';"
2. trying to perform this
$($myHTML)->find('li#myLIRef')->parent('ul#myULRef')->html();
3. It display nothing cause it don't dfind the parent (seems to get only
the unik direct parent using a filter or not)
What is the expected output? What do you see instead?
Should display "<li><ul><li id="myLIRef"></li></ul></li>".
What version of the product are you using? On what operating system?
the last using the SVN (0.9.1 beta3)
Original issue reported on code.google.com by [email protected]
on 27 Aug 2008 at 10:04
[deleted issue]
That means convert
* <?php ... ?> to <php><!-- ... --></php>
* <tag attr='<?php ... ?>' to <tag attr='<?php ... ?>'
Original issue reported on code.google.com by [email protected]
on 25 Jul 2008 at 10:43
http://docs.jquery.com/CSS
Original issue reported on code.google.com by [email protected]
on 17 Sep 2008 at 8:30
mylyn test
Original issue reported on code.google.com by [email protected]
on 14 Aug 2007 at 9:42
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.