Bug 152048 - [validation] Preference to add custom tag for html validation
Summary: [validation] Preference to add custom tag for html validation
Status: NEW
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.html (show other bugs)
Version: 1.5   Edit
Hardware: PC Windows XP
: P3 enhancement with 2 votes (vote)
Target Milestone: Future   Edit
Assignee: Nick Sandonato CLA
QA Contact: Nick Sandonato CLA
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2006-07-27 15:24 EDT by Chris Beck CLA
Modified: 2013-06-19 11:13 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 Chris Beck CLA 2006-07-27 15:24:05 EDT
I work with a number of different templating tools generating my html.  It would be nice if I could have an easier method of adding custom tags to the validator so code that will be substituted when running will be ignored by the validator.
Comment 1 Nitin Dahyabhai CLA 2007-09-13 04:46:13 EDT
This is an interesting idea, but you really want to make those custom tags known throughout the editor and validators instead.  We don't have people to work on this just now, but we'd gladly accept high quality patches.
Comment 2 Amy Wu CLA 2008-10-27 04:28:07 EDT
reassigning to inbox
Comment 3 Martin Fleurke CLA 2010-02-24 06:36:01 EST
I'm not sure what you can call a 'tag', but template engines usually don't have html-compatible tags <x> </x>. It's more like @placeholder@ or %placeholder% or [begin_block] xxx [end block] or whatever.

Since the placeholder can be substituted by anything, you can't do any checking on them, so you don't have to build something neat. Just a 'ignore validation error when erroneous text matches regexp XXX' will do.