Skip to content

Commit

Permalink
Add [TreatNullAs=EmptyString] to innerText
Browse files Browse the repository at this point in the history
This matches WebKit/Chromium but not Gecko/IE. Treating null as
empty string is consistent with textContent and innerHTML.
  • Loading branch information
zcorpan committed Aug 17, 2016
1 parent 0db3154 commit 618de84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source
Original file line number Diff line number Diff line change
Expand Up @@ -9662,7 +9662,7 @@ interface <dfn>HTMLElement</dfn> : <span>Element</span> {
[<span>CEReactions</span>] attribute boolean <span data-x="dom-spellcheck">spellcheck</span>;
void <span data-x="dom-forceSpellCheck">forceSpellCheck</span>();

[<span>CEReactions</span>] attribute DOMString <span data-x="dom-innerText">innerText</span>;
[<span>CEReactions</span>, TreatNullAs=EmptyString] attribute DOMString <span data-x="dom-innerText">innerText</span>;
};
<span>HTMLElement</span> implements <span>GlobalEventHandlers</span>;
<span>HTMLElement</span> implements <span>DocumentAndElementEventHandlers</span>;
Expand Down

0 comments on commit 618de84

Please sign in to comment.