blob: 4296c4a88588c2f47991ee21d7f84733dfa8feaf [file] [log] [blame]
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style>
target, Target, TARGET {
width: 100px;
height: 100px;
display: block;
float: left;
background-color: white;
color: white;
border: none;
}
target {
background-color: red;
}
Target {
border: 2px solid blue;
}
TARGET {
color: green;
}
</style>
</head>
<body>
<p>Test styling of elements using their local name. Matching the name should be case-sensitive for XHTML.</p>
<div id="test-cases">
<target>Target</target>
<Target>Target</Target>
<TARGET>Target</TARGET>
<xml xmlns="https://www.webkit.org/awesome">
<target>Target</target>
<Target>Target</Target>
<TARGET>Target</TARGET>
</xml>
</div>
</body>
<script><![CDATA[
var xmlDocument = new DOMParser().parseFromString('<xml xmlns="https://www.webkit.org/awesome"><target>Target</target><Target>Target</Target><TARGET>Target</TARGET></xml>', 'text/xml');
var testCases = document.getElementById("test-cases");
testCases.appendChild(document.importNode(xmlDocument.documentElement, true));
]]></script>
</html>