标题属性导致样式表停止工作

Title attribute causes stylesheet stops working

我目前正在试验 CSS Object 模型并尝试了解 StyleSheetCSSStyleSheetCSSRule 的所有属性和方法所有此类 objects 都有效。我不明白为什么,如果我为我的 <link rel="stylesheet"> 元素添加 title 属性会导致 'switching off' 特定样式表,而 disabled 属性 仍然设置到 false 所有样式表?

<link rel="stylesheet" href="a.css" title="a"/>  <!--this works-->
<link rel="stylesheet" href="b.css" title="b"/>  <!--this does not work-->

根据 MDN - Correctly Using Titles With External Stylesheets

... A preferred stylesheet, on the other hand, is one that has a value of stylesheet supplied for the rel attribute, and any value at all for the title attribute. Here are two examples:

<link type="text/css" rel="stylesheet" title="Basic styles" href="basic.css" />
<link type="text/css" rel="stylesheet" title="Fish and boats" href="ocean.css" />

According to the HTML 4.01 specification, only one of the preferred stylesheets can be used at a time. Therefore, given the above example, only one of the two preferred stylesheets will be applied to the document. The specification does not supply a procedure to decide which one should be used, so user agents are free to make whatever choice they like...