Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » error, Duplicate tag (HTML).
error, Duplicate tag (HTML). [message #1796717] Thu, 18 October 2018 05:43 Go to next message
Eclipse UserFriend
Hello All,

I'm getting a "Duplicate tag (HTML)." error on the second <DOCTYPE> tag
in my script as well as a "Duplicate tag (html)." warning on the second
<html> tag.

Is PDT doing this? and if so, can I set it somehow to not do it? (like
ignore or something?)

Thanks!

Sam Washburn

The script I'm using boils down to this...
https://inro.in/lucky-patcher/ https://inro.in/9apps/ https://inro.in/vidmate/

<?
if($something) {
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<body>
DISPLAY ONE FORM
</body>
</html>
<?
} else {
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<body>
DISPLAY DIFFERENT FORM
</body>
</html>
<?
}
?>

[Updated on: Thu, 18 October 2018 17:53] by Moderator

Report message to a moderator

Re: error, Duplicate tag (HTML). [message #1796749 is a reply to message #1796717] Thu, 18 October 2018 12:06 Go to previous messageGo to next message
Jems Ford is currently offline Jems FordFriend
Messages: 4
Registered: September 2018
Junior Member
HTML is basically used for the designing the static web page. if you are writing code in HTML then you can check the proper syntax of the HTML code. Many types of the Software is available on the internet you can simply use the eclipse for coding of the HTML. You can also use Asus Laptop for coding in HTML. If your Asus Laptop is not working properly, please visit https://www.asussupportnumber.com/asus-customer-support/
Re: error, Duplicate tag (HTML). [message #1796867 is a reply to message #1796749] Sat, 20 October 2018 06:46 Go to previous message
Marck boat is currently offline Marck boatFriend
Messages: 1
Registered: October 2018
Junior Member
The reason is that eclipse validator doesn't handle well html tags within php.

One clean approach is to Create a PHP working set to selectively disable validation:

Refer to eclipse docs. Create a working set for the plugin/theme you are developing and then filter the contents in the problems view to that working set.

Previous Topic:"Variable is never used" in foreach loops
Next Topic:Recommended project layout?
Goto Forum:
  


Current Time: Sun Dec 10 15:00:32 GMT 2023

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

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

Back to the top