technosophos/querypath — Issue #61: css method provides no get-functionality
Author: arneke
Created: 2011-11-09 00:02:45+00:00
State: open

Pasted from the support-list:

I am a bit surprised by the behavior of the css method. Reviewing the
code, there does not seem to be any direct way to "get" a value
without deleting it?

Not sure whether changing the default behavior would be considered
breaking the API, but it also seems wrong that css('float') results in
no value, instead of deleting the key completely:
<... style="... float: ; ...">

How about changing the method so that $value = null just returns the
value without changing the style-attribute?