1 |
wakaba |
1.1 |
|
2 |
|
|
/* |
3 |
|
|
|
4 |
|
|
|styleSheet| Object |
5 |
|
|
<http://msdn2.microsoft.com/en-us/library/ms535871(VS.85).aspx> |
6 |
|
|
|
7 |
|
|
*/ |
8 |
|
|
|
9 |
|
|
function IEStyleSheet (href, parentStyleSheet) { |
10 |
|
|
this.href = href; |
11 |
|
|
this.parentStyleSheet = parentStyleSheet; |
12 |
|
|
this.imports = []; |
13 |
|
|
this.pages = []; |
14 |
|
|
this.rules = []; |
15 |
|
|
} |
16 |
|
|
|
17 |
|
|
// TODO: property canHaveHTML |
18 |
|
|
|
19 |
|
|
// property disabled |
20 |
|
|
// property href |
21 |
|
|
|
22 |
|
|
// TODO: property id |
23 |
|
|
// TODO: property isContentEditable |
24 |
|
|
// TODO: property isDisabled |
25 |
|
|
// TODO: property isMultiLine |
26 |
|
|
// TODO: property owningElement |
27 |
|
|
|
28 |
|
|
// property parentStyleSheet |
29 |
|
|
|
30 |
|
|
// TODO: property readOnly |
31 |
|
|
|
32 |
|
|
// property title |
33 |
|
|
|
34 |
|
|
// TODO: property type |
35 |
|
|
|
36 |
|
|
// collection imports |
37 |
|
|
// TODO: method namedItem |
38 |
|
|
// collection pages |
39 |
|
|
// collection rules |
40 |
|
|
|
41 |
|
|
// TODO: method addImport |
42 |
|
|
// TODO: method addPageRule |
43 |
|
|
// TODO: method addRule |
44 |
|
|
// TODO: method fireEvent |
45 |
|
|
// TODO: method removeImport |
46 |
|
|
// TODO: method removeRule |
47 |
|
|
|
48 |
|
|
// TODO: property cssText |
49 |
|
|
// TODO: property media |
50 |
|
|
// TODO: property textAutospace |
51 |
|
|
|
52 |
|
|
/* |
53 |
|
|
|
54 |
|
|
|page| Object |
55 |
|
|
<http://msdn2.microsoft.com/en-us/library/ms535879(VS.85).aspx> |
56 |
|
|
|
57 |
|
|
*/ |
58 |
|
|
|
59 |
|
|
function IEPage (pseudoClass, selector) { |
60 |
|
|
this.pseudoClass = pseudoClass; |
61 |
|
|
this.selector = selector; |
62 |
|
|
} |
63 |
|
|
|
64 |
|
|
// property pseudoClass |
65 |
|
|
// property selector |
66 |
|
|
|
67 |
|
|
/* |
68 |
|
|
|
69 |
|
|
|CSSStyleDeclaration| Interface |
70 |
|
|
|
71 |
|
|
*/ |
72 |
|
|
|
73 |
|
|
function IEStyleDeclaration (mediaText) { |
74 |
|
|
this._MediaText = mediaText; |
75 |
|
|
} |
76 |
|
|
|
77 |
|
|
// internal property _MediaText |