<p ref:x>{inDocument}</p>

<script>
	export default {
		oncreate () {
			this.set({ inDocument: document.contains( this.refs.x ) })
		}
	};
</script>