Bug 272966 - [validation] The validator doesn't flag missing required attributes
Summary: [validation] The validator doesn't flag missing required attributes
Status: NEW
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.html (show other bugs)
Version: 3.0.4   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: Future   Edit
Assignee: Nick Sandonato CLA
QA Contact: Nick Sandonato CLA
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2009-04-20 15:25 EDT by Nathan Baum CLA
Modified: 2013-06-19 11:14 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 Nathan Baum CLA 2009-04-20 15:25:29 EDT
(My Web Standard Tools says I'm using version 3.0.4, which isn't in the list of options above.)

The HTML validator doesn't appear to provide any way to flag missing required attributes (such as img's alt, or style's type), whether as warnings or errors. This obviously makes the validator less useful.

The document cleanup tool must know which attributes are required, since it will put them in if they are missing. It doesn't tell you where it inserted them, however, so that isn't a useable substitute for attributes where Eclipse's idea of the default value isn't necessarily what you want, such as img/alt, where the default is empty.

The validator should check for missing required attributes and flag them as it does other errors in the document.
Comment 1 Ian Tewksbury CLA 2010-04-07 11:25:08 EDT
Still not an available validation preference in WTP 3.2 though it would be nice to have.