| 259 | | == `[TreatReturnedNullStringAs]`(m,a) == #TreatReturnedNullStringAs |
| 260 | | |
| 261 | | Summary: `[TreatReturnedNullStringAs]` controls the behavior when a WebKit null string is returned from the WebCore implementation. |
| 262 | | |
| 263 | | Usage: The possible usage is `[TreatReturnedNullStringAs=Undefined]`. |
| 264 | | They can be specified on DOMString attributes or methods that return a DOMString value: |
| 265 | | {{{ |
| 266 | | [TreatReturnedNullStringAs= Undefined] attribute DOMString str; |
| 267 | | [TreatReturnedNullStringAs=Undefined] DOMString func(); |
| 268 | | }}} |
| 269 | | |
| 270 | | * `[TreatReturnedNullStringAs=Undefined]` indicates that if the returned DOMString is a WebKit null string, the returned value is treated as a JavaScript undefined. |
| 271 | | |
| 272 | | Without `[TreatReturnedNullStringAs=...]`, if the returned DOMString is a WebKit null string, then the returned value is treated as a JavaScript empty string ''. |
| 273 | | |