﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
14290	Parent selector is selecting both child and parent	naoliv	team	"Use the example from https://josm.openstreetmap.de/wiki/Help/Styles/MapCSSImplementation#Parentselector

{{{
#!mapcss
node[traffic_calming] < way[highway] {
        throwWarning: tr(""match"");
}
}}}

with the attached example and see how it's matching/selecting 2 objects (the way (parent) and the node (child))

The description says that `In contrast to the child selector, the parent object will be ""selected""`

Shouldn't only the way be selected here? ie, we should see a warning about one object only (the way)

JOSM:
{{{
URL:http://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2017-01-25 02:17:36 +0100 (Wed, 25 Jan 2017)
Build-Date:2017-01-25 02:33:55
Revision:11490
Relative:URL: ^/trunk

Identification: JOSM/1.5 (11490 en) Linux Debian GNU/Linux 9.0 (stretch)
Memory Usage: 314 MB / 10206 MB (52 MB allocated, but free)
Java version: 1.8.0_111-8u111-b14-3-b14, Oracle Corporation, OpenJDK 64-Bit Server VM
Screen: :0.0 1600x900, :0.1 1280x1024
Maximum Screen Size: 1600x1024
Java package: openjdk-8-jre:amd64-8u111-b14-3
Java ATK Wrapper package: libatk-wrapper-java:all-0.33.3-13
VM arguments: [-Dawt.useSystemAAFontSettings=on]
Program arguments: [--language=en]
Dataset consistency test: No problems found
}}}"	defect	new	normal		Core validator			mapcss parent child selector	Klumbumbus
