Opened 8 years ago

Last modified 7 years ago

#16580 closed defect

Preset documentation for <check> elements — at Version 1

Reported by: Simon Poole Owned by: team
Priority: normal Milestone:
Component: Wiki content Version:
Keywords: Cc:

Description (last modified by Don-vip)

TaggingPresets#Attributes says the following on the default values (explicitly set and implied):

default="default_value"
An explicitly declared default value for the item. This value is only applied through a preset when the object the preset is applied to has zero keys. If a value for default is not given, different implied default values apply depending upon the type:
  • <check> (whether a checkbox is ticked on or off by default): implied default is "off"
  • <text>, <combo>, <multiselect>: implied default is ""

However the actual JOSM behaviour seems to be to assume undefined / "" for <check> elements and not the default value for the "off" state ("no").

Change History (1)

comment:1 by Don-vip, 7 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.