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
The non-numeric case is working as documented (result is undefined). Issue #15 tracks improvements in this area.
The empty case is indeed not working as documented. I'm currently intending to change documentation since I don't see a good reason for difference in behavior between threshold="" and threshold="a".
When using as_int(1) on attributes such as:
Threshold=""
or:
Threshold="non-numeric"
The return value is 0 instead of the default 1 as expected according to the manual: http://pugixml.org/docs/manual.html#access.attrdata
The same holds true for the other numeric attribute accessors.
The text was updated successfully, but these errors were encountered: