Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/document-metadata/the-meta-element/http-equiv-and-name-2.html - WPT Dashboard Interop Dashboard
<!doctype html>
<title>Setting both http-equiv and name attributes on a meta element</title>
<meta http-equiv=content-language name=color-scheme content=de-DE>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
// We don't attempt to test the color-scheme here because "de-DE" is not a valid
// value for it.
test(() => {
assert_equals(document.querySelector(":root:lang(de-DE)"), document.documentElement);
}, "<meta> set the content-language to de-DE");
</script>