LibWeb/DOM: Remove unnecessary LegacyNullToEmptyString usage

Perhaps this made a difference with an older version of the IDL
generator, but as far as I can tell, this no longer has any effect.
Remove the use of this attribute to match the specification IDL
definition.
This commit is contained in:
Shannon Booth 2026-06-05 17:52:00 +02:00 committed by Shannon Booth
parent 2328c272e5
commit b52a7cdc6e

View file

@ -31,10 +31,7 @@ interface Node : EventTarget {
readonly attribute Node? nextSibling;
[CEReactions] attribute DOMString? nodeValue;
// FIXME: [LegacyNullToEmptyString] is not allowed on nullable types as per the Web IDL spec.
// However, we only apply it to setters, so this works as a stop gap.
// Replace this with something like a special cased [LegacyNullToEmptyString].
[LegacyNullToEmptyString, CEReactions] attribute Utf16DOMString? textContent;
[CEReactions] attribute Utf16DOMString? textContent;
[CEReactions] undefined normalize();
[ImplementedAs=clone_node_binding, CEReactions] Node cloneNode(optional boolean deep = false);