Tern & Browser Extension support - angelozerr/tern.java GitHub Wiki
tern-browser-extension provides a tern plugin which is able to use tern inside HTML and provides advanced features for Browser like completion, hyperlink, validation for :
- HTML element ids:
- CSS selectors:
- Event types:
After installing and converting your project as Tern Project, go at Tern project property, click on Tern / Modules item and select the Browser Extension tern plugin (ECMAScript, Browser tern plugins must be selected too) :
HTML element ids
Completion for HTML element ids
Hyperlink for HTML element id
You can go at definition to HTML element id.
Validation for HTML element id
If you activate tern-lint you will benefit with HTML elements id validation :
CSS Selectors
Completion for CSS Selectors
Hyperlink for CSS Selectors
You can go at definition to HTML element id.
Validation for CSS Selectors
If you activate tern-lint you will benefit with validation for CSS selectors syntax, HTML elements id validation :
Event types
Completion for Event types
Hover for Event types
You can hover the string event type to show some informations:
Validation for Event types
If you activate tern-lint you will benefit with validation for Event types validation :