Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 108860 - Need an API to manage elements validated by HTML
Summary: Need an API to manage elements validated by HTML
Status: RESOLVED WONTFIX
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.html (show other bugs)
Version: 0.7   Edit
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---   Edit
Assignee: David Williams CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-06 13:58 EDT by Robert Goodman CLA
Modified: 2007-09-13 04:33 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Goodman CLA 2005-09-06 13:58:36 EDT
The HTML validation code assumes that it can validate all the elements in a 
file. As HTML is used with other server side languages the file will contain 
elements that the HTML validators will not understand. The only reason this 
works for JSPs is that the HTML validation code special cases JSP elements. An 
API should be provided that will allow HTML validators to support other 
languages. 

The best approach I have found so far is in the ElementImpl for the new 
elements in the method getExistingAdapter(Object type) is to check to see if 
the object type is class 
org.eclipse.wst.html.core.internal.validate.ElementPropagatingValidator and 
replace the propagating validator with my own.
Comment 1 Nitin Dahyabhai CLA 2007-09-13 04:33:37 EDT
Marking as wontfix since we're not going to open up the validator that way.  Besides, you don't just want to ignore certain elements, you actually want them known and supported throughout the editors and validators.