[jbosstools-issues] [JBoss JIRA] (JBIDE-18387) HTML Validation: Ability to ignore custom htm tags (e.g. <ion-*>)

Max Rydahl Andersen (JIRA) issues at jboss.org
Mon Sep 22 05:58:03 EDT 2014


    [ https://issues.jboss.org/browse/JBIDE-18387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13004620#comment-13004620 ] 

Max Rydahl Andersen commented on JBIDE-18387:
---------------------------------------------

couldn't we extend the current pure string check for attributes to have a bit smarter registration of these "special" cases ?

i.e. today we just have a global validation of attributes against this magic string.

Could we not have a basic api that won't allow nor require full access to a validation context but simply
state "given element name X then please ask this extension point if attribute is valid or not"

i.e. an extension point can register itself (per project) to be called on validation of elements and attributes.

IStatus validate(String element, String attributename) (or even if possible the dom tree is passed in)

The validations we need here does not need much context besides wether a certain javascript fwk is enabled or not or am I missing something ? 

(I can see it would be great to have even deeper validation options but at least this could cover 80% of the usecaess?)

> HTML Validation: Ability to ignore custom htm tags (e.g. <ion-*>)
> -----------------------------------------------------------------
>
>                 Key: JBIDE-18387
>                 URL: https://issues.jboss.org/browse/JBIDE-18387
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: jsp/jsf/xml/html source editing, upstream
>            Reporter: Alexey Kazakov
>            Assignee: Victor Rubezhny
>              Labels: new_and_noteworthy
>             Fix For: 4.3.x
>
>         Attachments: 00001262.png
>
>
> 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 ;)



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


More information about the jbosstools-issues mailing list