JavaScript exception: TypeError: Accessing selectionDirection on an input element that cannot have a selection.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

JavaScript exception: TypeError: Accessing selectionDirection on an input element that cannot have a selection.

XumuK
Hi there!
I tried to use <input type='date'> and <input type='time'> tags and find out strange error.

For example:

...
<input id='testTagId' type='date'> (or <input id='testTagId' type='time'> )
...

|temp|
   temp := document getElementById: 'testTagId'.
   temp inspect.  <== JavaScript exception: TypeError: Accessing selectionDirection on an input element that cannot have a selection.

May be i am doing something wrong?

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: JavaScript exception: TypeError: Accessing selectionDirection on an input element that cannot have a selection.

Herby Vojčík
It seems like bad luck ... inspect tries to get all properties to show, but it fails while getting one of them... it should probably be safeguarded and show <error> or something like that instead in inspector...

You should probably fill an issue.

Herby

XumuK wrote:

> Hi there!
> I tried to use <input type='date'> and <input type='time'> tags and
> find out strange error.
>
> For example:
>
> ...
> <input id='testTagId' type='date'> (or <input id='testTagId'
> type='time'> )
> ...
>
> /|temp|/
> /temp := document getElementById: 'testTagId'./
> /temp inspect./ <== JavaScript exception: TypeError: Accessing
> selectionDirection on an input element that cannot have a selection.
>
> May be i am doing something wrong?
>
> --
> You received this message because you are subscribed to the Google
> Groups "amber-lang" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [hidden email].
> For more options, visit
 https://groups.google.com/groups/opt_out.
>
>

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.


Reply | Threaded
Open this post in threaded view
|

Re: JavaScript exception: TypeError: Accessing selectionDirection on an input element that cannot have a selection.

XumuK
Ok)

четверг, 23 мая 2013 г., 14:32:23 UTC+4 пользователь Herby написал:
It seems like bad luck ... inspect tries to get all properties to show, but it fails while getting one of them... it should probably be safeguarded and show <error> or something like that instead in inspector...

You should probably fill an issue.

Herby

XumuK wrote:

> Hi there!
> I tried to use <input type='date'> and <input type='time'> tags and
> find out strange error.
>
> For example:
>
> ...
> <input id='testTagId' type='date'> (or <input id='testTagId'
> type='time'> )
> ...
>
> /|temp|/
> /temp := document getElementById: 'testTagId'./
> /temp inspect./ <== JavaScript exception: TypeError: Accessing
> selectionDirection on an input element that cannot have a selection.
>
> May be i am doing something wrong?
>
> --
> You received this message because you are subscribed to the Google
> Groups "amber-lang" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="8ZY1dnUDs5oJ">amber-lang+...@googlegroups.com.
> For more options, visit
 https://groups.google.com/groups/opt_out.
>
>

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.