Re: Some table-anonymous-objects tests rely on setting disabled property of style element

On Jan 8, 2011, at 9:21 pm, L. David Baron wrote:

> On Saturday 2011-01-08 20:46 -0800, Simon Fraser wrote:
>> The following tests:
>> 
>> table-anonymous-objects-015
>> table-anonymous-objects-016
>> table-anonymous-objects-019
>> table-anonymous-objects-020
>> 
>> rely on setting the disabled property of a style element:
>> 
>>    <style id="s" type="text/css">
>>      span { display: block ! important }
>>    </style>
>>    <script type="text/javascript">
>>      function doTest() {
>>        var s = document.getElementById("s");
>>        s.disabled = true;
>> 
>> I find no mention of the disabled property in either HTML4 or CSS 2.1
>> (the only reference I can find is <http://www.w3.org/TR/2004/WD-xhtml2-20040722/mod-styleSheet.html#sec_25.1.>).
> 
> It's been in the DOM since DOM Level 1:
> http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html.html#ID-16428977
> http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109/html.html#ID-16428977

Thanks for the clarification!

Simon

Received on Sunday, 9 January 2011 05:25:37 UTC