Wrong case of some Javascript objects

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
kybos
Posts: 21
Joined: Fri Jun 01, 2007 10:12 pm

Wrong case of some Javascript objects

Post by kybos »

In the object panel, the list of Javascript objects lists all objects starting with uppercase character. IMHO this is wrong for objects like window, screen, document..., it won't even work in the coding since Javascript is case-sensitive.

Kybos
kybos
Posts: 21
Joined: Fri Jun 01, 2007 10:12 pm

Post by kybos »

A related issue:
The input help for JavaScript is obviously NOT case sensitive.
I.e. you get the list of possible attributes/methods both for
window.[] and Window.[], which I think should not happen.
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

I do not have time to go through this, I'd appreciate if you as a JavaScript expert could list here which items should be lower case. Thanks!
Karlis Blumentals
Blumentals Software
www.blumentals.net
kybos
Posts: 21
Joined: Fri Jun 01, 2007 10:12 pm

Post by kybos »

Hi Karlis,

here is a list of general Javascript objects with proper case (source selfHTML):

all (Microsoft)
anchors
applets
Array
Boolean
Date
document
elements
embeds
event
forms
frames
Function
history
images
layers (Netscape)
links
location
Math
mimeTypes
navigator
node
Number
options
plugins
RegExp
screen
String
style
window

(They should probably appear in blue color in the object reference pane)

Then there are the HTML element objects (green in the list?) which are always lower case, like tr, option, textarea etc. ... You sometimes don't use these element names at all but descriptions like TableHeader etc.
But I think this is not so important since these texts are not entered by a double-click on a property anyway...

Cheers,
Kybos
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Thanks!
Karlis Blumentals
Blumentals Software
www.blumentals.net
Post Reply