Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » HTML5 Validation in JSDT(HTML5 Validation in JSDT)
HTML5 Validation in JSDT [message #553796] Wed, 18 August 2010 21:53 Go to next message
Scott Kellicker is currently offline Scott KellickerFriend
Messages: 11
Registered: July 2009
Junior Member
I am trying to use the Helios JSDT to do some HTML5/JavaScript development.

This may be a simple question, but I have not found the answer.

How do I set up JSDT such that my HTML code is validated against HTML5?
For example, I would expect no warning would be shown when using the canvas tag. And that content assist would work for canvas.

Thanks for any help!

Re: HTML5 Validation in JSDT [message #553810 is a reply to message #553796] Wed, 18 August 2010 23:43 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4430
Registered: July 2009
Senior Member

On 8/18/2010 5:53 PM, Scott Kellicker wrote:
> I am trying to use the Helios JSDT to do some HTML5/JavaScript development.
>
> This may be a simple question, but I have not found the answer.
>
> How do I set up JSDT such that my HTML code is validated against HTML5?
> For example, I would expect no warning would be shown when using the
> canvas tag. And that content assist would work for canvas.
>
> Thanks for any help!

Right now you can not with what is supplied in Helios; our web browser
library is based on W3C's bindings for HTML 4. The HTML component's
working on adding knowledge of HTML5 tags to its editor and validator,
and JSDT will follow suit in a similar time-frame.

JSDT's provided libraries declare the necessary types and their
properties plus any variables that would normally be available in a
runtime, using JSDoc to supply type information for function parameters
and return values. Opening a type under the ECMA 3 Browser Support
Library will show the .js file we've used to "stub out" the types you
would expect to find. It is fully possible to write your own additions
and add them to the project's Include Path before we get to it ourselves.

--
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: HTML5 Validation in JSDT [message #553973 is a reply to message #553810] Thu, 19 August 2010 14:40 Go to previous messageGo to next message
Scott Kellicker is currently offline Scott KellickerFriend
Messages: 11
Registered: July 2009
Junior Member
Thanks for the info, Nitin.

What is the expected timeframe for these additions? Are these planned for Indigo (or before?)

Also, regarding JSDoc, are there instructions-- either as part of the product or online-- explaining how to add your own types? Are their extension points related to this? Are there 3rd party plug-ins that provide additional types/functions?

I'm interested in figuring out how to add support for Html5/JavaScript elements such as Canvas.
I'm also interested in understanding how one goes about adding editor support for 3rd party libraries. I've seen some frustrated discussion of this on the web, and yet to see a success story. Maybe you can point me to a good how-to.


Also
Re: HTML5 Validation in JSDT [message #554685 is a reply to message #553973] Tue, 24 August 2010 06:16 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4430
Registered: July 2009
Senior Member

On 8/19/2010 10:40 AM, Scott Kellicker wrote:
> What is the expected timeframe for these additions? Are these planned
> for Indigo (or before?)

For Indigo? Definitely. Earlier? Possibly.

> Also, regarding JSDoc, are there instructions-- either as part of the
> product or online-- explaining how to add your own types? Are their
> extension points related to this? Are there 3rd party plug-ins that
> provide additional types/functions?

The JSDoc is parsed directly from the *.js files on the project's
Include Path. JSDT's support for the format lies somewhere in between
the original implementation documented at
http://jsdoc.sourceforge.net/#tagref and the wiki for the rewrite at
http://code.google.com/p/jsdoc-toolkit/w/list .

> I'm interested in figuring out how to add support for Html5/JavaScript
> elements such as Canvas.
> I'm also interested in understanding how one goes about adding editor
> support for 3rd party libraries. I've seen some frustrated discussion of
> this on the web, and yet to see a success story. Maybe you can point me
> to a good how-to.

The best examples are the various libraries supplied with JSDT, which
hew along the first of the two paths for supporting a library: JSDoc.
The documentation format allows for descriptions and type information
for objects and properties. The second, and more
powerful/flexible/complicated option, makes use of the
org.eclipse.wst.jsdt.core.inferrenceSupport extension point to provide
types and properties for the source files it is given by static
analysis. The default inferrence support itself is driven by the JSDoc
in the source files, but presumably other inferrence support could be
built around other documentation formats.

--
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Apache Derby Core/UI Plugin
Next Topic:Creating WebAppImpl from a String
Goto Forum:
  


Current Time: Thu Mar 28 13:01:21 GMT 2024

Powered by FUDForum. Page generated in 0.03195 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top