Re: [webcomponents] Restrict the types of nodes that could be assigned to a slot (#351)

I do not have a strong opinion on this. This sounds a minor issue and does not cause a real issue, IMO.

Do we really want to change this? At least, we have to:

1. Change the IDL

From:

````idl
partial interface NonDocumentTypeChildNode {
    readonly        attribute HTMLSlotElement? assignedSlot;
};
```

To:

````idl
partial interface Element {
    readonly        attribute HTMLSlotElement? assignedSlot;
};
```

````idl
partial interface TextNode {
    readonly        attribute HTMLSlotElement? assignedSlot;
};
```

2. Tweak the slotting algorithm

3. UA has to introduce "if ... else if ..." in implementing slotting algorithm . :)




---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/351#issuecomment-171180076

Received on Wednesday, 13 January 2016 06:10:42 UTC