Skip to content

Commit

Permalink
Align with Web IDL extended attribute changes
Browse files Browse the repository at this point in the history
[TreatNullAs=EmptyString] → [LegacyNullToEmptyString] and [Unforgeable] →
[LegacyUnforgeable]. Follows whatwg/webidl#870.
  • Loading branch information
domenic committed Apr 8, 2020
1 parent 61834f7 commit c4fb6e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ interface Event {
readonly attribute boolean defaultPrevented;
readonly attribute boolean composed;

[Unforgeable] readonly attribute boolean isTrusted;
[LegacyUnforgeable] readonly attribute boolean isTrusted;
readonly attribute DOMHighResTimeStamp timeStamp;

void initEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false); // historical
Expand Down Expand Up @@ -5464,7 +5464,7 @@ with that <a>document</a>.
[Exposed=Window]
interface DOMImplementation {
[NewObject] DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId, DOMString systemId);
[NewObject] XMLDocument createDocument(DOMString? namespace, [TreatNullAs=EmptyString] DOMString qualifiedName, optional DocumentType? doctype = null);
[NewObject] XMLDocument createDocument(DOMString? namespace, [LegacyNullToEmptyString] DOMString qualifiedName, optional DocumentType? doctype = null);
[NewObject] Document createHTMLDocument(optional DOMString title);

boolean hasFeature(); // useless; always returns true
Expand Down Expand Up @@ -7068,7 +7068,7 @@ string <var>value</var>, run these steps:
<pre class=idl>
[Exposed=Window]
interface CharacterData : Node {
attribute [TreatNullAs=EmptyString] DOMString data;
attribute [LegacyNullToEmptyString] DOMString data;
readonly attribute unsigned long length;
DOMString substringData(unsigned long offset, unsigned long count);
void appendData(DOMString data);
Expand Down

0 comments on commit c4fb6e5

Please sign in to comment.