[w3c/webcomponents] Ignore title attributes on <link ref=stylesheet> in shadow trees (#535)

In https://github.com/w3c/webcomponents/issues/530, we have not discussed anything about how `title=` attribute should be treated in `<link rel="stylesheet">`. Yeah, that's our mistake. :)

I would like to have a consensus on the behavior here before proceeding this [code review](https://codereview.chromium.org/2177163002/) further.

My proposal is that we ignore `title=` attribute completely, as we did that for `<style>` elements in https://github.com/w3c/webcomponents/issues/391.

Note that the difference between `<style>` and `<link>` here is that `<link>` can specify alternative stylesheet by `rel=alternate`. See https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets for general information about alternative style sheets.

The proposal is effectively making:

```
1)  <link rel="stylesheet" title="x">
2)  <link rel="alternate stylesheet" title="x">
```
behave as:
```
1)  <link rel="stylesheet"> // always enabled
2)  <link rel="alternate stylesheet"> // never enabled
```

See https://codereview.chromium.org/2177163002#msg52  for the rationale. I agree with @rune-opera 's  rational there.



---
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/webcomponents/issues/535

Received on Monday, 1 August 2016 11:33:47 UTC