Idea does not show missing dtd in red

Hello,

I have the following html file:


<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Good Thymes Virtual Grocery</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<p th:text="#{home.welcome}">Welcome to our grocery store!</p>
</body>
</html>


Although I don't have the mentioned dtd in my system, it's not in red, so there is no fetch option with ALT+ENTER.
Thus, usage of the "th" namespace gives warnings.

Besides, the URL is not important, it's not checked whatever nonsense I put there as dtd address.

Using IDEA: 111.167

Any suggestions?

Thanks

1 comment
Comment actions Permalink

If you are using .html extension for xhtml format, you need to remap it to
XHTML file type in IDE Settings -> File Types.

"Selim Ober" <no_reply@jetbrains.com> сообщил(а) в новостях
следующее:25999628.110321327605992923.JavaMail.devnet@confluence.jetbrains.net...

Hello,

>

I have the following html file:

>

<!DOCTYPE html SYSTEM
"http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Good Thymes Virtual Grocery</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<p th:text="#{home.welcome}">Welcome to our grocery store!</p>
</body>
</html>

>

Although I don't have the mentioned dtd in my system, it's not in red, so
I there is no fetch option with ALT+ENTER.
Thus, usage of the "th" namespace gives warnings.

>

Besides, the URL is not important, it's not checked whatever nonsense I
put there as dtd address.

>

Using IDEA: 111.167

>

Any suggestions?

>

Thanks

>

---
Original message URL: http://devnet.jetbrains.net/message/5450254#5450254


0

Please sign in to leave a comment.