 
 				parentStyle = style
 
-			for child in node.children
-				if child instanceof File.Element.Tag
+			unless isText
+				for child in node.children
 					forNode file, child, parentStyle
 			return
 


		assert.notOk @item

		id = @node.getAttr 'neft:style'
		assert.isString id

		@isScope = ///^(styles|renderer)\:///.test id
		@item = null
		@scope = null
		@isAutoParent = false

		if id instanceof Renderer.Item
			@item = id
		else if @isScope
			@isAutoParent = true
			if ///^styles\:///.test(id)

			for elem in queries
				nodes = file.node.queryAll elem.query
				for node in nodes
					unless node instanceof Tag
						log.warn "document.query can be attached only to tags; " +
							"query '#{elem.query}' has been omitted for this node"
						continue
					unless node.hasAttr('neft:style')
						node.setAttr 'neft:style', elem.style

