Edit this page

up.element up.element.toSelector(element)
JavaScript function

This feature has been deprecated. Use up.fragment.toTarget() instead.

Load unpoly-migrate.js to polyfill deprecated features.

Returns a CSS selector that matches the given element as good as possible.

Alias for up.fragment.toTarget().


Parameters

element
required

The element for which to create a selector.