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

Bug 357864

Summary: mixed PHP/HTML files are parsed as HTML5 :(
Product: z_Archived Reporter: Ryan P <dkived>
Component: PDTAssignee: PHP UI <php.ui-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: ganoro
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Ryan P CLA 2011-09-15 15:12:50 EDT
Build Identifier: I20110613-1736

PDT is automatically deciding to parse all HTML content in my PHP files as HTML5. We do not have any HTML5 content anywhere in our application, and additionally there is a ton of legacy code using tags/attributes that are deprecated in HTML5 (center, font, script language, etc). Of course, being PHP these are not all full pages, and can't have a doctype at the beginning of each file. This is causing the IDE's 'enhancements' to be distracting and hog my CPU as I have yellow squigglies all over the place, and due to the poor parsing of mixed PHP/HTML content in PDT, in large files the squigglies will span pages and pages of code (including code inside PHP tags).

It would be nice to have an option like WTP for default doctype, or at least not default to HTML5 -- this is very counterintuitive as most web browsers viewing a page with no doctype would not default to HTML5, so why should the IDE?

Reproducible: Always

Steps to Reproduce:
1. Open PHP file with no HTML doctype
2. Create a <center> tag
3. Glare at squigglies
Comment 1 Roy Ganor CLA 2011-09-18 10:44:08 EDT
we should make sure that the WTP's default doctype is also PDT's one