File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -98,26 +98,26 @@ public function xpath_textContent(string $expr, int $item = 0) {
9898}
9999}
100100
101- public function querySelector_innerHTML (string $ expr , int $ item = 0 ) {
102- $ node = $ this ->querySelector ( $ expr , $ item );
101+ public function querySelector_innerHTML (string $ selector , int $ item = 0 ) {
102+ $ node = $ this ->xpath ( static :: CSS_to_Xpath ( $ selector ) , $ item );
103103if ($ node === NULL ) {
104104return NULL ;
105105} else {
106106return static ::innerHTML ($ node );
107107}
108108}
109109
110- public function querySelector_outerHTML (string $ expr , int $ item = 0 ) {
111- $ node = $ this ->querySelector ( $ expr , $ item );
110+ public function querySelector_outerHTML (string $ selector , int $ item = 0 ) {
111+ $ node = $ this ->xpath ( static :: CSS_to_Xpath ( $ selector ) , $ item );
112112if ($ node === NULL ) {
113113return NULL ;
114114} else {
115115return static ::outerHTML ($ node );
116116}
117117}
118118
119- public function querySelector_textContent (string $ expr , int $ item = 0 ) {
120- $ node = $ this ->querySelector ( $ expr , $ item );
119+ public function querySelector_textContent (string $ selector , int $ item = 0 ) {
120+ $ node = $ this ->xpath ( static :: CSS_to_Xpath ( $ selector ) , $ item );
121121if ($ node === NULL ) {
122122return NULL ;
123123} else {
You can’t perform that action at this time.
0 commit comments