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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: giorgio dot liscio at email dot it
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC