From querypath created by salarmehr: technosophos/querypath#179
Where for example $dom->text($text) is invoked while $text=null the method acts as a getter while it is not intended to be a setter (following jQuery). This is also true for attr('foo',null) and others. sending null and sending no parameter need to be distinguished. I think public function html($html = NULL) {} need to be converted to public function html() {} and the arguments fetched by func_get_args function.
From querypath created by salarmehr: technosophos/querypath#179
Where for example
$dom->text($text)
is invoked while$text=null
the method acts as a getter while it is not intended to be a setter (following jQuery). This is also true forattr('foo',null)
and others. sending null and sending no parameter need to be distinguished. I thinkpublic function html($html = NULL) {}
need to be converted topublic function html() {}
and the arguments fetched byfunc_get_args
function.