[w3c/DOM-Parsing] Extended attribute [TreatNullAs] is not an attribute extended attribute (#55)

In [`interface mixin InnerHTML`][0]:

```
[CEReactions, TreatNullAs=EmptyString] attribute DOMString innerHTML;
```

In [`partial interface Element`][1]:

```
[CEReactions, TreatNullAs=EmptyString] attribute DOMString outerHTML;
```

The [`TreatNullAs` extended attribute][2] isn’t [applicable to attributes][3], it is only [applicable to types][4] (specifically [DOMString][5]).

Extended attributes appearing before the `attribute` keyword [don’t propagate to the attribute’s type][6].

These two uses of `TreatNullAs` should appear in an extended attributes list between the `attribute` and `DOMString` as [part of TypeWithExtendedAttributes][7].

[0]: https://w3c.github.io/DOM-Parsing/#the-innerhtml-mixin

[1]: https://w3c.github.io/DOM-Parsing/#extensions-to-the-element-interface

[2]: https://heycam.github.io/webidl/#TreatNullAs

[3]: https://heycam.github.io/webidl/#ref-for-dfn-extended-attribute%E2%91%A0%E2%93%AA

[4]: https://heycam.github.io/webidl/#extended-attributes-applicable-to-types

[5]: https://heycam.github.io/webidl/#ref-for-idl-type-extended-attribute-associated-with①⑦

[6]: https://heycam.github.io/webidl/#idl-type-extended-attribute-associated-with

[7]: https://heycam.github.io/webidl/#index-prod-AttributeRest



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/DOM-Parsing/issues/55

Received on Sunday, 17 November 2019 21:06:31 UTC