Git Product home page Git Product logo

phpquery's People

Stargazers

 avatar

Watchers

 avatar

phpquery's Issues

Broken method names

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

New test cases

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

Memory issues

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

Optimizations

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

Ajax and script timeouts

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

Test method

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

Parent() and Parents() method don't work like in jQuery

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

Reimplement history as a list of objects

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

iframes support

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

XPath interface

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

Extended callback support

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

Call to undefined method DOMElement::addClass()

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

phpQuery.php leaks whitespaces to stdout

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

Charset incompatibility

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

jQueryServer plugin

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

Multiple selectors don't work with filter() method

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

Metadata plugin

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

PHP 5 strict and notice warnings [PATCH]

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:

XML, XHTML compatibility

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

Events

Events implementation will probably need new class.

Original issue reported on code.google.com by [email protected] on 1 Sep 2008 at 1:19

Clone method isn't working as a real clone

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

Appending an element from a document to another document

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

Can't chaining using attr method with a null value

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

XML namespaces

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

Write couple of tutorials

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

jQuery 1.2.2 compatibility

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

Docs

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

HTTP Client aka AJAX

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

inserting html with html html() method don't work

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

text method can take an optional text string

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.