Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357864 - mixed PHP/HTML files are parsed as HTML5 :(
Summary: mixed PHP/HTML files are parsed as HTML5 :(
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-15 15:12 EDT by Ryan P CLA
Modified: 2020-05-14 10:16 EDT (History)
1 user (show)

See Also:


Attachments

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