[whatwg] Placeholder option for text input boxes

I suppose so, with the following exceptions:
* You use WINDOW.IMAGE.CREATE instead of new Image()
* You use FOR EACH instead of new Enumerator()
* The operator in is not available, although you can use DOM ATTRIBUTES
instead
* Everything is case-insensitive, except for string literals
* The operator TYPENAME is available
* [] is unavailable but you can implicitly call the default property of an
object
* this is ME, null is NOTHING, undefined is EMPTY
* WINDOW.EVENT is global
* value assignment (without SET) automatically invokes CSTR
* exception handling is not available 
* decode/encodeURL is not available unless you import the JScript engine as
well
* Function references are not available, except that you can use GETREF to
assign dynamic event handlers to properties
* Static event handlers are assigned by name after the document is loaded
(i.e. only WINDOW_ONLOAD gets called)
* Automatic type coercion uses system locale, not C locale
Remind me if I forgot something.
Chris

-----Original Message-----
From: timeless.bmo1@gmail.com [mailto:timeless.bmo1@gmail.com] On Behalf Of
timeless
Sent: Thursday, October 02, 2008 4:22 PM
To: giecrilj at stegny.2a.pl; whatwg at whatwg.org
Subject: Re: [whatwg] Placeholder option for text input boxes

Is vbscript defined to have the same dom bindings as jscript?

On 10/2/08, Kristof Zelechovski <giecrilj at stegny.2a.pl> wrote:
> INPUT. CHECKED = "checked"
> is equivalent to
> INPUT. SETATTRIBUTE "checked", "checked"
> as of MSIE7.
>
> Chris
>
> My unit test:
>
> SET L5ELEMS = ME. ELEMENTS
> SET A1C = L5ELEMS. NAMEDITEM("ITSTEST")
> IF A1C. TAGNAME <> "INPUT" THEN STOP
> IF A1C. GETATTRIBUTE("type") <> "checkbox" THEN STOP
> IF A1C. GETATTRIBUTE("checked") THEN STOP
> REM A1C. SETATTRIBUTE "checked", "checked"
> A1C. CHECKED = "checked"
> IF NOT A1C. GETATTRIBUTE("checked") THEN STOP
>

Received on Thursday, 2 October 2008 09:39:17 UTC