Fixed unrecognised headers

This commit is contained in:
Oowekyala
2017-05-06 02:56:10 +02:00
parent 39eb79f58e
commit 3b7c956596
2 changed files with 21 additions and 1 deletions

View File

@ -239,7 +239,7 @@ A missing 'meta' tag or page directive will trigger this rule, as well as a non-
<property name="xpath">
<value>
<![CDATA[
//Content[
//CompilationUnit/Content[
not(Element[@Name="meta"][
Attribute[@Name="content"]/AttributeValue[contains(lower-case(@Image),"charset=utf-8")]
])

View File

@ -64,4 +64,24 @@ Good meta header 2
]]></code>
<source-type>jsp</source-type>
</test-code>
<test-code>
<description><![CDATA[
Issue #369
]]></description>
<expected-problems>0</expected-problems>
<code><![CDATA[
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://topjava.javawebinar.ru/functions" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Meal list</title>
<link rel="stylesheet" href="css/style.css">
</head>
</html>
]]></code>
<source-type>jsp</source-type>
</test-code>
</test-data>