[Bug 18514] New: Validator mixes up character encoding at the W20 warning

https://www.w3.org/Bugs/Public/show_bug.cgi?id=18514

           Summary: Validator mixes up character encoding at the W20
                    warning
           Product: Validator
           Version: HEAD
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: check
        AssignedTo: dave.null@w3.org
        ReportedBy: kurosawa-takeshi@mitsue.co.jp
         QAContact: www-validator-cvs@w3.org


At the W20 warning:
- The encoding specified in the meta element is treated as the value in XML
declaration.
- The encoding specified in the XML declaration is not shown.

For example, in case validating following html,

<?xml version="1.0" encoding="Shift_JIS"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=Shift-JIS" />
<title>Hello, World!</title>
</head>
<body>
<p>Hello, World!</p>
</body>
</html>

the warning actually shown is below:

> The character encoding specified in the XML declaration (shift-jis)
> is different from the value in the <meta> element ().
> I will use the value from the XML declaration (shift-jis) for this validation.

While expected is below:

> The character encoding specified in the XML declaration (shift_jis)
> is different from the value in the <meta> element (shift-jis).
> I will use the value from the XML declaration(shift_jis) for this validation.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 9 August 2012 23:43:42 UTC