Bug 1483102 [wpt PR 12460] - Fix invalid charset detection in a meta element, a=testonly
authorAmos Lim <eui-sang.lim@samsung.com>
Thu, 16 Aug 2018 09:37:15 +0000
changeset 431986 b9fca07569cd925e05ea65cec22d5e80f01710d7
parent 431985 e63abe6c5a9b314fb313108e2dc12d4bc85b64b7
child 431987 fb6563c40067647e0aee54629917b896639a2ee4
push id34456
push usertoros@mozilla.com
push dateThu, 16 Aug 2018 21:33:21 +0000
treeherdermozilla-central@72442cf86f54 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1483102, 12460, 855047, 1172462, 582845
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1483102 [wpt PR 12460] - Fix invalid charset detection in a meta element, a=testonly Automatic update from web-platform-testsFix invalid charset detection in a meta element Fix invalid charset detection when a meta contains both a "charset" and a "content" attribute. The encoding specified in the "charset" attribute should have precedence over the one in the "content" attribute. https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-inhead Bug: 855047 Change-Id: I79306fc0bff8f094800a989d8d548bd94b96b5eb Reviewed-on: https://chromium-review.googlesource.com/1172462 Reviewed-by: Kent Tamura <tkent@chromium.org> Commit-Queue: Amos Lim <eui-sang.lim@samsung.com> Cr-Commit-Position: refs/heads/master@{#582845} -- wpt-commits: b9396c5d8387226795edb96076b8e1b5d8d4096b wpt-pr: 12460
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/html/syntax/parsing/meta-inhead-insertion-mode.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -363097,16 +363097,22 @@
     ]
    ],
    "html/syntax/parsing/math-parse03.html": [
     [
      "/html/syntax/parsing/math-parse03.html",
      {}
     ]
    ],
+   "html/syntax/parsing/meta-inhead-insertion-mode.html": [
+    [
+     "/html/syntax/parsing/meta-inhead-insertion-mode.html",
+     {}
+    ]
+   ],
    "html/syntax/parsing/named-character-references.html": [
     [
      "/html/syntax/parsing/named-character-references.html",
      {}
     ]
    ],
    "html/syntax/parsing/template/additions-to-foster-parenting/template-is-a-foster-parent-element.html": [
     [
@@ -603488,16 +603494,20 @@
   "html/syntax/parsing/math-parse01.html": [
    "3aff716d9f7cfa6fb6c26992920b137b63f195e4",
    "testharness"
   ],
   "html/syntax/parsing/math-parse03.html": [
    "a3dbdc4e61aad00648c6b9ac34e22c08cbea12ce",
    "testharness"
   ],
+  "html/syntax/parsing/meta-inhead-insertion-mode.html": [
+   "4317e4eb14a7fdb92e7ca5594f95e13158198417",
+   "testharness"
+  ],
   "html/syntax/parsing/named-character-references-data.js": [
    "48ab30e4738feb1c95b2d4ad0a381c15c61e38d3",
    "support"
   ],
   "html/syntax/parsing/named-character-references.html": [
    "d09915cd974dd3a8b828eb58c004d63c853d1271",
    "testharness"
   ],
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/html/syntax/parsing/meta-inhead-insertion-mode.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>Encoding specified in the "charset" attribute should have precedence over "content" attribute.</title>
+<meta http-equiv="Content-Type" content="text/html; charset=koi8-r" charset="iso-8859-15">
+<link rel="help" href="https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-inhead">
+<script src=/resources/testharness.js></script>
+<script src=/resources/testharnessreport.js></script>
+<script>
+test(function () {
+  assert_equals(document.characterSet, "ISO-8859-15");
+}, "Encoding specified in the 'charset' attribute should have precedence over 'content' attribute.");
+</script>
+</body>
+</html>