Revision be26c4f22f52f4c488d8e9d586db50eea2428a10 authored by Jim Evans on 15 March 2018, 21:21:56 UTC, committed by Jim Evans on 15 March 2018, 21:21:56 UTC
For the domain attribute of a returned cookie, if the attribute value conatains a domain with a single dot ('.'), some user agents prepend a leading dot onto the beginning of the attribute value. This is consistent with RFC 2965. Some user agents expressly omit the leading dot, which is consistent with the later RFC 6265. This commit allows both values as the returned value of the domain attribute.
1 parent 750cfaf
idlharness.html
<title>Input Event IDL tests</title>
<link rel="help" href="https://w3c.github.io/input-events/#h-interface-inputevent"/>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/WebIDLParser.js"></script>
<script src="/resources/idlharness.js"></script>
<pre id="untested_idl">
interface InputEvent {
};
</pre>
<pre id='idl'>
partial interface InputEvent {
readonly attribute DOMString inputType;
readonly attribute DataTransfer? dataTransfer;
sequence<StaticRange> getTargetRanges();
};
partial dictionary InputEventInit {
DOMString inputType = "";
DataTransfer? dataTransfer = null;
sequence<StaticRange> targetRanges = [];
};
</pre>
<script>
(function(){
"use strict";
const idl_array = new IdlArray();
idl_array.add_untested_idls(document.getElementById("untested_idl").textContent);
idl_array.add_idls(document.getElementById("idl").textContent);
idl_array.add_objects({
InputEvent: ['new InputEvent("foo")'],
});
idl_array.test();
})();
</script>
Computing file changes ...