UNPKG

1.69 kBJavaScriptView Raw
1let K = null
2
3// is it server?
4if (typeof exports !== 'undefined' && exports !== null)
5{
6 K = require('kcore')
7}
8else
9{
10 K = window.K
11}
12
13K.BSC.nateCommonStyleAttributes = [
14 // A-Z order.
15 'backgroundColor',
16 'border',
17 'borderCollapse',
18 'bottom',
19 'color',
20 'cssText',
21 'cursor',
22 'display',
23 'float',
24 'font',
25 'fontFamily',
26 'fontSize',
27 'fontStyle',
28 'fontWeight',
29 'height',
30 'left',
31 'margin',
32 'overflow',
33 'overflowX',
34 'overflowY',
35 'padding',
36 'position',
37 'right',
38 'textAlign',
39 'top',
40 'verticalAlign',
41 'visibility',
42 'width',
43 'zIndex'
44];
45
46K.BSC.nateCommonHtmlAttributes = [
47 // A-Z order.
48 'alt',
49 'class',
50 'cols',
51 'content',
52 'for',
53 'itemprop',
54 'itemscope',
55 'itemtype',
56 'name',
57 'rows',
58 'tabindex',
59 'wrap'
60];
61
62K.BSC.nateCommonHtmlProperties = [
63 // A-Z order.
64 'checked',
65 'colSpan',
66 'href',
67 'id',
68 'innerHTML',
69 'innerJSON',
70 'label',
71 'onclick',
72 'onscroll',
73 'readOnly',
74 'rowSpan',
75 'selected',
76 'src',
77 'target',
78 'value'
79];
80
81K.BSC.nateCommonHtmlOpenCloseTags = [
82 // A-Z order.
83 'a',
84 'article',
85 'b',
86 'button',
87 'canvas',
88 'div',
89 'h1',
90 'h2',
91 'h3',
92 'header',
93 'label',
94 'li',
95 'main',
96 'nav',
97 'optGroup',
98 'option',
99 'p',
100 'pre',
101 'script',
102 'section',
103 'select',
104 'span',
105 'tBody',
106 'table',
107 'td',
108 'textArea',
109 'th',
110 'tr',
111 'ul'
112];
113
114K.BSC.nateCommonHtmlOpenCloseAtOnceTags = [
115 // A-Z order.
116 'br',
117 'img',
118 'meta'
119];
120
121K.BSC.nateCommonHtmlInputTypes = [
122 // A-Z order.
123 'checkbox',
124 'password',
125 'radio',
126 'text',
127];