Summary: | Node.textContent = undefined should be equivalent to textContent = "" | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> | ||||
Component: | DOM | Assignee: | Ryosuke Niwa <rniwa> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | cdumez, commit-queue, darin, kling | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | WebKit Nightly Build | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
URL: | https://heycam.github.io/webidl/#es-nullable-type | ||||||
Attachments: |
|
Description
Ryosuke Niwa
2015-09-02 16:45:38 PDT
As per https://heycam.github.io/webidl/#es-nullable-type, since the attribute is nullable, "if V is null or undefined, then return the IDL nullable type T? value null". Our generated bindings missed the "or undefined" part. I believe there is even a FIXME comment about this in the bindings generator already. Created attachment 260462 [details]
Fixes the bug
Comment on attachment 260462 [details] Fixes the bug Clearing flags on attachment: 260462 Committed r189269: <http://trac.webkit.org/changeset/189269> All reviewed patches have been landed. Closing bug. |