You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: