Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325219 - Html file without doctype is being treated as html5 document
Summary: Html file without doctype is being treated as html5 document
Status: CLOSED INVALID
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.html (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: wst.html CLA
QA Contact: Nick Sandonato CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-14 06:04 EDT by Sarika Sinha CLA
Modified: 2010-09-14 09:51 EDT (History)
1 user (show)

See Also:


Attachments
patch to treat files without doctype as html4 file (1005 bytes, patch)
2010-09-14 06:08 EDT, Sarika Sinha CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!