[jbosstools-issues] [JBoss JIRA] (JBIDE-18725) HTML Validation: Ability to perform custom validation for tags, attributes and attribute values in WTP

Victor Rubezhny (JIRA) issues at jboss.org
Sat Nov 1 15:22:35 EDT 2014


     [ https://issues.jboss.org/browse/JBIDE-18725?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Victor Rubezhny updated JBIDE-18725:
------------------------------------
    Description: 
WTP HTML validator marks any custom html tags as unknown. It's possible to disable this validation at all: Window->Preferences->Web->HTML Files->Validation ==> Set Elements -> Unknown tag name severity to "Ignore":

But these days there are many frameworks provide an ability to create custom tags and attributes, so there cannot be some static schema created in order to help to validate such pages.

We need to add a possibility to provide a custom validator for tags/attributes/values for WTP, so it could be called to validate a page elements.

See discussions here: JBIDE-18387 and here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=443097. 

  was:
WTP HTML validator marks any custom html tags as unknown. It's possible to disable this validation at all: Window->Preferences->Web->HTML Files->Validation ==> Set Elements -> Unknown tag name severity to "Ignore":

!00001262.png!

But it would be useful to have ability to make HTML validator ignore some particular tags only.

I suggest to contribute a patch to WTP to fix it.
We have already did it for attributes, so lets do it for tags too:

- New preferences with a list of ignored tags (a mask can be used)
- A new preference page to set these preferences
- QuickFix for validation problem which will add the tag name/mask to this list/preferences
- Extension in our angular/ionic plugin which will disable validation for <ion-*> tags.

I've filed it to bugzilla - https://bugs.eclipse.org/bugs/show_bug.cgi?id=444545 but we have to provide a patch for it if we want to have it done ;)



> HTML Validation: Ability to perform custom validation for tags, attributes and attribute values in WTP
> ------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-18725
>                 URL: https://issues.jboss.org/browse/JBIDE-18725
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: jsp/jsf/xml/html source editing, upstream
>            Reporter: Victor Rubezhny
>            Assignee: Victor Rubezhny
>              Labels: new_and_noteworthy
>             Fix For: 4.3.x
>
>
> WTP HTML validator marks any custom html tags as unknown. It's possible to disable this validation at all: Window->Preferences->Web->HTML Files->Validation ==> Set Elements -> Unknown tag name severity to "Ignore":
> But these days there are many frameworks provide an ability to create custom tags and attributes, so there cannot be some static schema created in order to help to validate such pages.
> We need to add a possibility to provide a custom validator for tags/attributes/values for WTP, so it could be called to validate a page elements.
> See discussions here: JBIDE-18387 and here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=443097. 



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the jbosstools-issues mailing list