Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 325219

Summary: Html file without doctype is being treated as html5 document
Product: [WebTools] WTP Source Editing Reporter: Sarika Sinha <sarika.sinha>
Component: wst.htmlAssignee: wst.html <wst.html-inbox>
Status: CLOSED INVALID QA Contact: Nick Sandonato <nsand.dev>
Severity: normal    
Priority: P3 CC: thatnitind
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch to treat files without doctype as html4 file none

Description Sarika Sinha CLA 2010-09-14 06:04:29 EDT
Build Identifier: M20100818-0800

Existing html/jsp files without doctype is being treated as html5 document. Tags/ attributes might show obsolete messages for earlier validated file.

Reproducible: Always
Comment 1 Sarika Sinha CLA 2010-09-14 06:08:23 EDT
Created attachment 178795 [details]
patch to treat files without doctype as html4 file

Currently making the changes to treat existing files without doctype to be treated as html4 doc. Will add a preference space for user to specify if they want the file without doctype to be treated as html4/html5
Comment 2 Nick Sandonato CLA 2010-09-14 09:51:16 EDT
Hi, Sarika. The default is set to HTML4 in 3.2, but in 3.3 we plan on treating the default as HTML5. So, this is working as designed.

Thanks for the attention to detail!