mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision 0d318188757a9c996e20b82db201fd04de5aa255
This commit is contained in:
parent
b2a5225831
commit
1a81b18b9f
12321 changed files with 544385 additions and 6 deletions
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<title>HTMLAreaElement stringifier</title>
|
||||
<link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com">
|
||||
<link rel="help" href="https://heycam.github.io/webidl/#es-stringifier">
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script src=/common/stringifiers.js></script>
|
||||
<div id=log></div>
|
||||
<script>
|
||||
test(function() {
|
||||
test_stringifier_attribute(document.createElement("area"), "href", false);
|
||||
var area = document.createElement("area");
|
||||
area.setAttribute("href", "foo");
|
||||
test_stringifier_attribute(area, "href", false);
|
||||
})
|
||||
</script>
|
|
@ -0,0 +1,18 @@
|
|||
<html xmlns='http://www.w3.org/1999/xhtml'>
|
||||
<head>
|
||||
<title>AREA - NOREF</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test for <b>nohref</b> attribute on <b>area</b> </p>
|
||||
<p>Hover over the Blue Square below. The square is not clickable but the area around it should be.</p>
|
||||
<p>The test passes if clicking on the square doesn't do anything. Clicking on the area around the square should take you to another page.</p>
|
||||
<img src="../../../../images/blue-area.png" height="180" width="228" usemap="#square" border="0"/>
|
||||
<map name="square">
|
||||
<area alt="Blue Square" coords="43,29,176,135" nohref=""/>
|
||||
<area shape="rect" alt="White Space" coords="0,0,227,179" href="test-area.xhtml"/>
|
||||
</map>
|
||||
<p>
|
||||
<i>Note - This test checks for User Agent requirement as per HTML5 spec NOT the author requirement</i>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,9 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title> This is a test page</title>
|
||||
</head>
|
||||
<body>
|
||||
This is a simple xhtml page
|
||||
<p><a href="area_nohref.xhtml">Click here</a> to go back to the previous page</p>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue