diff options
Diffstat (limited to 'testing/web-platform/tests/conformance-checkers/html/elements/param')
-rw-r--r-- | testing/web-platform/tests/conformance-checkers/html/elements/param/model-isvalid.html | 18 | ||||
-rw-r--r-- | testing/web-platform/tests/conformance-checkers/html/elements/param/model-novalid.html | 40 |
2 files changed, 58 insertions, 0 deletions
diff --git a/testing/web-platform/tests/conformance-checkers/html/elements/param/model-isvalid.html b/testing/web-platform/tests/conformance-checkers/html/elements/param/model-isvalid.html new file mode 100644 index 0000000000..eedf9d0066 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html/elements/param/model-isvalid.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset=utf-8> + <title><param></title> +</head> +<body> +<p> + <object data='foo'><param name="foo" value='bar'></object> + + <object data='foo'><param name="foo" value="!@#$%$ ^&)"></object> + <object data='foo'><param name="foo" value="!@#$%$ ^&)"></object> + + <object data='foo'><param name="foo" value="uri"></object> + <object data='foo'><param name="foo" value="uri"></object> +</p> +</body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html/elements/param/model-novalid.html b/testing/web-platform/tests/conformance-checkers/html/elements/param/model-novalid.html new file mode 100644 index 0000000000..ad780fc833 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html/elements/param/model-novalid.html @@ -0,0 +1,40 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset=utf-8> + <title><param></title> +</head> +<body> + <!-- param is not block or inline --> + <param name="foo"> + <p>para<param name="foo"></p> + <p><dfn>strictly<param name="foo"></dfn></p> + + <!-- param must be empty --> + <object><param name="foo"><p>yo</p></object> + <p><object><param name="foo"><em>some</em> text</object></p> + + <!-- name is required --> + <object><param></object> + + <!-- param data value cannot have type attr --> + <object><param name="foo" value="!@#$%$ ^&)" + type="application/octet-stream"></object> + <object><param name="foo" valuetype="data" value="!@#$%$ ^&)" + type="application/octet-stream"></object> + + <!-- param ref value must be URI --> + <object><param name="foo" valuetype="ref" value="<"></object> + <object><param name="foo" valuetype="ref" value="<" + type="application/octet-stream"></object> + + <!-- param object value must be IDREF, cannot have type attr --> + <object><param name="foo" valuetype="object" value="sth"></object> + <object><param name="foo" valuetype="object" value="#"></object> + <object><param name="foo" valuetype="object" value="#" + type="application/octet-stream"></object> + + <!-- valuetype can't take any other values --> + <object><param name="foo" valuetype="sth"></object> +</body> +</html> |