Req #53943 [Opn->Wfx]: implement [document|element].querySelector[All]
| From: | aharvey@php.net | Date: | Mon, 07 Feb 2011 06:01:04 +0000 |
| Subject: | Req #53943 [Opn->Wfx]: implement [document|element].querySelector[All] | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-158537@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53943&edit=1
ID: 53943
Updated by: aharvey@php.net
Reported by: giorgio dot liscio at email dot it
Summary: implement [document|element].querySelector[All]
-Status: Open
+Status: Wont fix
Type: Feature/Change Request
Package: DOM XML related
Operating System: any
PHP Version: 5.3.5
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2011-02-07 02:51:57] dtajchreber@php.net
XPath and SimpleXML aren't fast or easy enough?
php.net/domxpath
php.net/simplexml
------------------------------------------------------------------------
[2011-02-06 22:58:31] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53943&edit=1