php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #53943 implement [document|element].querySelector[All]
Submitted: 2011-02-06 22:58 UTC Modified: 2011-02-07 07:01 UTC
Votes:3
Avg. Score:3.7 ± 1.9
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: giorgio dot liscio at email dot it Assigned:
Status: Wont fix Package: DOM XML related
PHP Version: 5.3.5 OS: any
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2011-02-06 22:58 UTC] giorgio dot liscio at email dot it
Description:
------------
hi, it is needed to have the possibility to select elements with a -faster- and easier way

http://dev.w3.org/2006/webapi/selectors-api/

thank you


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-02-07 02:51 UTC] dtajchreber@php.net
XPath and SimpleXML aren't fast or easy enough?

php.net/domxpath
php.net/simplexml
 [2011-02-07 07:01 UTC] aharvey@php.net
-Status: Open +Status: Wont fix
 [2011-02-07 07:01 UTC] aharvey@php.net
Unless and until libxml2 supports the selectors API directly, I don't
think there's much point trying to handle this in PHP. At any rate, it
should be possible to create a userland library that parses CSS
selectors and turns them into XPath calls: in fact, I believe this is
what phpQuery does already.

This could be reopened if libxml2 implements support for the API, but
for now, I think this is best closed Won't Fix in favour of this being
better suited to a userland solution.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Oct 19 22:03:37 2021 UTC