diff --git a/index.bs b/index.bs index 4192747..b677234 100644 --- a/index.bs +++ b/index.bs @@ -266,6 +266,7 @@ The cancel() method, when invoked on {{X
When {{XRHitTestSource/cancel()}} method is invoked, the user agent MUST cancel a hit test source by running the following steps: + 1. If |hitTestSource|'s [=XRHitTestSource/session=]’s [=XRSession/ended=] value is true, throw an {{InvalidStateError}} and abort these steps. 1. If the |hitTestSource| is not [=XRHitTestSource/active=], throw an {{InvalidStateError}} and abort these steps. 1. Remove |hitTestSource| from [=XRHitTestSource/session=]'s [=XRSession/set of active hit test sources=]. @@ -315,6 +316,7 @@ The cancel() method, when
When {{XRTransientInputHitTestSource/cancel()}} method is invoked, the user agent MUST cancel a hit test source for transient input by running the following steps: + 1. If |hitTestSource|'s [=XRTransientInputHitTestSource/session=]’s [=XRSession/ended=] value is true, throw an {{InvalidStateError}} and abort these steps. 1. If the |hitTestSource| is not [=XRTransientInputHitTestSource/active=], throw an {{InvalidStateError}} and abort these steps. 1. Remove |hitTestSource| from [=XRHitTestSource/session=]'s [=XRSession/set of active hit test sources for transient input=].