|
Re: HTML5 Validation in JSDT [message #553810 is a reply to message #553796] |
Wed, 18 August 2010 23:43 |
|
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 #554685 is a reply to message #553973] |
Tue, 24 August 2010 06:16 |
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03195 seconds