| Summary: | [html] [validator] Forward parse error from the HTML AST manager | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Michael Rennie <Michael_Rennie> |
| Component: | JS Tools | Assignee: | Michael Rennie <Michael_Rennie> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | Carolyn_MacLeod, curtis.windatt.public |
| Version: | 10.0 | ||
| Target Milestone: | 14.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Michael Rennie
When you say "validator", do you mean the w3c validators? http://www.w3.org/developers/tools (The one I care most about is the Nu validator because it checks some accessibility attributes). Here's the w3c validator API doc on github: http://validator.github.io/validator/ (In reply to Carolyn MacLeod from comment #1) > When you say "validator", do you mean the w3c validators? We are referencing the validator API built into the Orion editor: https://wiki.eclipse.org/Orion/Documentation/Developer_Guide/Plugging_into_the_editor#orion.edit.validator Plug-ins can analyze the editor content and return problems which will be displayed as annotations. We use a parser to analyze the HTML contents already, so this bug is suggesting we forward any errors the parsing produces to the validator API. We can build in additional validation, but I think it makes sense to follow up with htmllint rather than writing it ourselves. To use something like the Nu validator it would have to be built into a JS library and be under licensing we can consume. An alternative would be to forward the editor contents to a third party tool (maybe an option under the tools menu). I don't believe there are any examples of this in the Orion client but there were plug-ins to demo the concept. Fixed in: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=eae3bafca387f50a97b084781105d133f04675e9 It should be noted its pretty much impossible to get the parser to pass along a parse error, since it is super tolerant. |