Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » html5 tags in .php do not validate without a doctype
icon9.gif  html5 tags in .php do not validate without a doctype [message #703360] Wed, 27 July 2011 13:46
JeffS Missing name is currently offline JeffS Missing nameFriend
Messages: 2
Registered: July 2011
Junior Member
Hi

I hope someone can put me out of my misery Sad

Gentoo / Helios 3.6.2 PDT 2.2.1

I only use eclipse for php/html web development, I was running Galileo which worked fine except I could not get html5 validation to work. So I upgraded to helios.

html5 validation now works fine:

.html files with or without doctype declaration will validate
HOWEVER
.php files will only validate if the contain a doctype

So the following generates no warnings in a .html file
<!DOCTYPE html>
<html>
<section></section>
OR
<section></section>

But in a .php file
<!DOCTYPE html>
<html>
<section></section>
generates no warnings or errors

<section></section>
generates warning "Unknown tag (section)"

How do i set eclipse up or the project up so that .php files that contain html5 tags will still be validated as html5 doctype ?

Thanks in advance
Previous Topic:pdt editor refuses to load a simple html file
Next Topic:Rule not working.
Goto Forum:
  


Current Time: Fri Apr 26 10:10:03 GMT 2024

Powered by FUDForum. Page generated in 0.03000 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top