KHtml

htmlnames.cpp
1 #include "misc/htmlnames.h"
2 #include "dom/dom_string.h"
3 
4 using namespace DOM;
5 
6 namespace khtml
7 {
8 
9 IDTable<NamespaceFactory> *NamespaceFactory::s_idTable;
10 IDTable<NamespaceFactory> *NamespaceFactory::initIdTable()
11 {
12  if (s_idTable) {
13  return s_idTable; // Can happen if KHTMLGlobal was recreated..
14  }
15  s_idTable = new IDTable<NamespaceFactory>();
16  s_idTable->addStaticMapping(DOM::xmlNamespace, XML_NAMESPACE);
17  s_idTable->addStaticMapping(DOM::xmlnsNamespace, XMLNS_NAMESPACE);
18  s_idTable->addStaticMapping(DOM::svgNamespace, SVG_NAMESPACE);
19  s_idTable->addStaticMapping(DOM::xlinkNamespace, XLINK_NAMESPACE);
20  s_idTable->addStaticMapping(DOM::xhtmlNamespace, XHTML_NAMESPACE);
21  s_idTable->addStaticMapping(DOM::emptyNamespace, DOMString());
22  return s_idTable;
23 }
24 
25 IDTable<LocalNameFactory> *LocalNameFactory::s_idTable;
26 IDTable<LocalNameFactory> *LocalNameFactory::initIdTable()
27 {
28  if (s_idTable) {
29  return s_idTable; // Can happen if KHTMLGlobal was recreated..
30  }
31  s_idTable = new IDTable<LocalNameFactory>();
32  s_idTable->addStaticMapping(0, DOMString());
33  s_idTable->addStaticMapping(localNamePart(ID_A), "a");
34  s_idTable->addStaticMapping(localNamePart(ID_ABBR), "abbr");
35  s_idTable->addStaticMapping(localNamePart(ID_ACRONYM), "acronym");
36  s_idTable->addStaticMapping(localNamePart(ID_ADDRESS), "address");
37  s_idTable->addStaticMapping(localNamePart(ID_APPLET), "applet");
38  s_idTable->addStaticMapping(localNamePart(ID_AREA), "area");
39  s_idTable->addStaticMapping(localNamePart(ID_AUDIO), "audio");
40  s_idTable->addStaticMapping(localNamePart(ID_B), "b");
41  s_idTable->addStaticMapping(localNamePart(ID_BASE), "base");
42  s_idTable->addStaticMapping(localNamePart(ID_BASEFONT), "basefont");
43  s_idTable->addStaticMapping(localNamePart(ID_BDO), "bdo");
44  s_idTable->addStaticMapping(localNamePart(ID_BIG), "big");
45  s_idTable->addStaticMapping(localNamePart(ID_BLOCKQUOTE), "blockquote");
46  s_idTable->addStaticMapping(localNamePart(ID_BODY), "body");
47  s_idTable->addStaticMapping(localNamePart(ID_BR), "br");
48  s_idTable->addStaticMapping(localNamePart(ID_BUTTON), "button");
49  s_idTable->addStaticMapping(localNamePart(ID_CANVAS), "canvas");
50  s_idTable->addStaticMapping(localNamePart(ID_CAPTION), "caption");
51  s_idTable->addStaticMapping(localNamePart(ID_CENTER), "center");
52  s_idTable->addStaticMapping(localNamePart(ID_CITE), "cite");
53  s_idTable->addStaticMapping(localNamePart(ID_CODE), "code");
54  s_idTable->addStaticMapping(localNamePart(ID_COL), "col");
55  s_idTable->addStaticMapping(localNamePart(ID_COLGROUP), "colgroup");
56  s_idTable->addStaticMapping(localNamePart(ID_DD), "dd");
57  s_idTable->addStaticMapping(localNamePart(ID_DEL), "del");
58  s_idTable->addStaticMapping(localNamePart(ID_DFN), "dfn");
59  s_idTable->addStaticMapping(localNamePart(ID_DIR), "dir");
60  s_idTable->addStaticMapping(localNamePart(ID_DIV), "div");
61  s_idTable->addStaticMapping(localNamePart(ID_DL), "dl");
62  s_idTable->addStaticMapping(localNamePart(ID_DT), "dt");
63  s_idTable->addStaticMapping(localNamePart(ID_EM), "em");
64  s_idTable->addStaticMapping(localNamePart(ID_EMBED), "embed");
65  s_idTable->addStaticMapping(localNamePart(ID_FIELDSET), "fieldset");
66  s_idTable->addStaticMapping(localNamePart(ID_FONT), "font");
67  s_idTable->addStaticMapping(localNamePart(ID_FORM), "form");
68  s_idTable->addStaticMapping(localNamePart(ID_FRAME), "frame");
69  s_idTable->addStaticMapping(localNamePart(ID_FRAMESET), "frameset");
70  s_idTable->addStaticMapping(localNamePart(ID_H1), "h1");
71  s_idTable->addStaticMapping(localNamePart(ID_H2), "h2");
72  s_idTable->addStaticMapping(localNamePart(ID_H3), "h3");
73  s_idTable->addStaticMapping(localNamePart(ID_H4), "h4");
74  s_idTable->addStaticMapping(localNamePart(ID_H5), "h5");
75  s_idTable->addStaticMapping(localNamePart(ID_H6), "h6");
76  s_idTable->addStaticMapping(localNamePart(ID_HEAD), "head");
77  s_idTable->addStaticMapping(localNamePart(ID_HR), "hr");
78  s_idTable->addStaticMapping(localNamePart(ID_HTML), "html");
79  s_idTable->addStaticMapping(localNamePart(ID_I), "i");
80  s_idTable->addStaticMapping(localNamePart(ID_IFRAME), "iframe");
81  s_idTable->addStaticMapping(localNamePart(ID_ILAYER), "ilayer");
82  s_idTable->addStaticMapping(localNamePart(ID_IMAGE), "image");
83  s_idTable->addStaticMapping(localNamePart(ID_IMG), "img");
84  s_idTable->addStaticMapping(localNamePart(ID_INPUT), "input");
85  s_idTable->addStaticMapping(localNamePart(ID_INS), "ins");
86  s_idTable->addStaticMapping(localNamePart(ID_ISINDEX), "isindex");
87  s_idTable->addStaticMapping(localNamePart(ID_KBD), "kbd");
88  s_idTable->addStaticMapping(localNamePart(ID_KEYGEN), "keygen");
89  s_idTable->addStaticMapping(localNamePart(ID_LABEL), "label");
90  s_idTable->addStaticMapping(localNamePart(ID_LAYER), "layer");
91  s_idTable->addStaticMapping(localNamePart(ID_LEGEND), "legend");
92  s_idTable->addStaticMapping(localNamePart(ID_LI), "li");
93  s_idTable->addStaticMapping(localNamePart(ID_LINK), "link");
94  s_idTable->addStaticMapping(localNamePart(ID_LISTING), "listing");
95  s_idTable->addStaticMapping(localNamePart(ID_MAP), "map");
96  s_idTable->addStaticMapping(localNamePart(ID_MARQUEE), "marquee");
97  s_idTable->addStaticMapping(localNamePart(ID_MENU), "menu");
98  s_idTable->addStaticMapping(localNamePart(ID_META), "meta");
99  s_idTable->addStaticMapping(localNamePart(ID_NOBR), "nobr");
100  s_idTable->addStaticMapping(localNamePart(ID_NOEMBED), "noembed");
101  s_idTable->addStaticMapping(localNamePart(ID_NOFRAMES), "noframes");
102  s_idTable->addStaticMapping(localNamePart(ID_NOSCRIPT), "noscript");
103  s_idTable->addStaticMapping(localNamePart(ID_NOLAYER), "nolayer");
104  s_idTable->addStaticMapping(localNamePart(ID_OBJECT), "object");
105  s_idTable->addStaticMapping(localNamePart(ID_OL), "ol");
106  s_idTable->addStaticMapping(localNamePart(ID_OPTGROUP), "optgroup");
107  s_idTable->addStaticMapping(localNamePart(ID_OPTION), "option");
108  s_idTable->addStaticMapping(localNamePart(ID_P), "p");
109  s_idTable->addStaticMapping(localNamePart(ID_PARAM), "param");
110  s_idTable->addStaticMapping(localNamePart(ID_PLAINTEXT), "plaintext");
111  s_idTable->addStaticMapping(localNamePart(ID_PRE), "pre");
112  s_idTable->addStaticMapping(localNamePart(ID_Q), "q");
113  s_idTable->addStaticMapping(localNamePart(ID_S), "s");
114  s_idTable->addStaticMapping(localNamePart(ID_SAMP), "samp");
115  s_idTable->addStaticMapping(localNamePart(ID_SCRIPT), "script");
116  s_idTable->addStaticMapping(localNamePart(ID_SELECT), "select");
117  s_idTable->addStaticMapping(localNamePart(ID_SMALL), "small");
118  s_idTable->addStaticMapping(localNamePart(ID_SOURCE), "source");
119  s_idTable->addStaticMapping(localNamePart(ID_SPAN), "span");
120  s_idTable->addStaticMapping(localNamePart(ID_STRIKE), "strike");
121  s_idTable->addStaticMapping(localNamePart(ID_STRONG), "strong");
122  s_idTable->addStaticMapping(localNamePart(ID_STYLE), "style");
123  s_idTable->addStaticMapping(localNamePart(ID_SUB), "sub");
124  s_idTable->addStaticMapping(localNamePart(ID_SUP), "sup");
125  s_idTable->addStaticMapping(localNamePart(ID_TABLE), "table");
126  s_idTable->addStaticMapping(localNamePart(ID_TBODY), "tbody");
127  s_idTable->addStaticMapping(localNamePart(ID_TD), "td");
128  s_idTable->addStaticMapping(localNamePart(ID_TEXTAREA), "textarea");
129  s_idTable->addStaticMapping(localNamePart(ID_TFOOT), "tfoot");
130  s_idTable->addStaticMapping(localNamePart(ID_TH), "th");
131  s_idTable->addStaticMapping(localNamePart(ID_THEAD), "thead");
132  s_idTable->addStaticMapping(localNamePart(ID_TITLE), "title");
133  s_idTable->addStaticMapping(localNamePart(ID_TR), "tr");
134  s_idTable->addStaticMapping(localNamePart(ID_TT), "tt");
135  s_idTable->addStaticMapping(localNamePart(ID_U), "u");
136  s_idTable->addStaticMapping(localNamePart(ID_UL), "ul");
137  s_idTable->addStaticMapping(localNamePart(ID_VAR), "var");
138  s_idTable->addStaticMapping(localNamePart(ID_VIDEO), "video");
139  s_idTable->addStaticMapping(localNamePart(ID_WBR), "wbr");
140  s_idTable->addStaticMapping(localNamePart(ID_XMP), "xmp");
141  s_idTable->addHiddenMapping(ID_TEXT, "text");
142  s_idTable->addHiddenMapping(ID_COMMENT, "comment");
143  s_idTable->addStaticMapping(localNamePart(ATTR_ACCEPT_CHARSET), "accept-charset");
144  s_idTable->addStaticMapping(localNamePart(ATTR_ACCEPT), "accept");
145  s_idTable->addStaticMapping(localNamePart(ATTR_ACCESSKEY), "accesskey");
146  s_idTable->addStaticMapping(localNamePart(ATTR_ALIGN), "align");
147  s_idTable->addStaticMapping(localNamePart(ATTR_ALINK), "alink");
148  s_idTable->addStaticMapping(localNamePart(ATTR_AUTOCOMPLETE), "autocomplete");
149  s_idTable->addStaticMapping(localNamePart(ATTR_AUTOPLAY), "autoplay");
150  s_idTable->addStaticMapping(localNamePart(ATTR_AXIS), "axis");
151  s_idTable->addStaticMapping(localNamePart(ATTR_BEHAVIOR), "behavior");
152  s_idTable->addStaticMapping(localNamePart(ATTR_BGCOLOR), "bgcolor");
153  s_idTable->addStaticMapping(localNamePart(ATTR_BGPROPERTIES), "bgproperties");
154  s_idTable->addStaticMapping(localNamePart(ATTR_BORDER), "border");
155  s_idTable->addStaticMapping(localNamePart(ATTR_BORDERCOLOR), "bordercolor");
156  s_idTable->addStaticMapping(localNamePart(ATTR_CELLPADDING), "cellpadding");
157  s_idTable->addStaticMapping(localNamePart(ATTR_CELLSPACING), "cellspacing");
158  s_idTable->addStaticMapping(localNamePart(ATTR_CHAR), "char");
159  s_idTable->addStaticMapping(localNamePart(ATTR_CHALLENGE), "challenge");
160  s_idTable->addStaticMapping(localNamePart(ATTR_CHAROFF), "charoff");
161  s_idTable->addStaticMapping(localNamePart(ATTR_CHARSET), "charset");
162  s_idTable->addStaticMapping(localNamePart(ATTR_CHECKED), "checked");
163  s_idTable->addStaticMapping(localNamePart(ATTR_CLEAR), "clear");
164  s_idTable->addStaticMapping(localNamePart(ATTR_CODETYPE), "codetype");
165  s_idTable->addStaticMapping(localNamePart(ATTR_COLOR), "color");
166  s_idTable->addStaticMapping(localNamePart(ATTR_COLS), "cols");
167  s_idTable->addStaticMapping(localNamePart(ATTR_COLSPAN), "colspan");
168  s_idTable->addStaticMapping(localNamePart(ATTR_COMPACT), "compact");
169  s_idTable->addStaticMapping(localNamePart(ATTR_CONTENTEDITABLE), "contenteditable");
170  s_idTable->addStaticMapping(localNamePart(ATTR_CONTROLS), "controls");
171  s_idTable->addStaticMapping(localNamePart(ATTR_COORDS), "coords");
172  s_idTable->addStaticMapping(localNamePart(ATTR_DECLARE), "declare");
173  s_idTable->addStaticMapping(localNamePart(ATTR_DEFER), "defer");
174  s_idTable->addStaticMapping(localNamePart(ATTR_DIRECTION), "direction");
175  s_idTable->addStaticMapping(localNamePart(ATTR_DISABLED), "disabled");
176  s_idTable->addStaticMapping(localNamePart(ATTR_ENCTYPE), "enctype");
177  s_idTable->addStaticMapping(localNamePart(ATTR_FACE), "face");
178  s_idTable->addStaticMapping(localNamePart(ATTR_FRAMEBORDER), "frameborder");
179  s_idTable->addStaticMapping(localNamePart(ATTR_HEIGHT), "height");
180  s_idTable->addStaticMapping(localNamePart(ATTR_HIDDEN), "hidden");
181  s_idTable->addStaticMapping(localNamePart(ATTR_HREFLANG), "hreflang");
182  s_idTable->addStaticMapping(localNamePart(ATTR_HSPACE), "hspace");
183  s_idTable->addStaticMapping(localNamePart(ATTR_HTTP_EQUIV), "http-equiv");
184  s_idTable->addStaticMapping(localNamePart(ATTR_ISMAP), "ismap");
185  s_idTable->addStaticMapping(localNamePart(ATTR_XML_LANG), "lang");
186  s_idTable->addStaticMapping(localNamePart(ATTR_LANGUAGE), "language");
187  s_idTable->addStaticMapping(localNamePart(ATTR_LEFT), "left");
188  s_idTable->addStaticMapping(localNamePart(ATTR_LEFTMARGIN), "leftmargin");
189  s_idTable->addStaticMapping(localNamePart(ATTR_LOOP), "loop");
190  s_idTable->addStaticMapping(localNamePart(ATTR_MARGINHEIGHT), "marginheight");
191  s_idTable->addStaticMapping(localNamePart(ATTR_MARGINWIDTH), "marginwidth");
192  s_idTable->addStaticMapping(localNamePart(ATTR_MAXLENGTH), "maxlength");
193  s_idTable->addStaticMapping(localNamePart(ATTR_MEDIA), "media");
194  s_idTable->addStaticMapping(localNamePart(ATTR_METHOD), "method");
195  s_idTable->addStaticMapping(localNamePart(ATTR_MULTIPLE), "multiple");
196  s_idTable->addStaticMapping(localNamePart(ATTR_NOHREF), "nohref");
197  s_idTable->addStaticMapping(localNamePart(ATTR_NORESIZE), "noresize");
198  s_idTable->addStaticMapping(localNamePart(ATTR_NOSAVE), "nosave");
199  s_idTable->addStaticMapping(localNamePart(ATTR_NOSHADE), "noshade");
200  s_idTable->addStaticMapping(localNamePart(ATTR_NOWRAP), "nowrap");
201  s_idTable->addStaticMapping(localNamePart(ATTR_ONABORT), "onabort");
202  s_idTable->addStaticMapping(localNamePart(ATTR_ONERROR), "onerror");
203  s_idTable->addStaticMapping(localNamePart(ATTR_ONRESIZE), "onresize");
204  s_idTable->addStaticMapping(localNamePart(ATTR_OVERSRC), "oversrc");
205  s_idTable->addStaticMapping(localNamePart(ATTR_PAGEX), "pagex");
206  s_idTable->addStaticMapping(localNamePart(ATTR_PAGEY), "pagey");
207  s_idTable->addStaticMapping(localNamePart(ATTR_PLACEHOLDER), "placeholder");
208  s_idTable->addStaticMapping(localNamePart(ATTR_PLAIN), "plain");
209  s_idTable->addStaticMapping(localNamePart(ATTR_PLUGINPAGE), "pluginpage");
210  s_idTable->addStaticMapping(localNamePart(ATTR_PLUGINSPAGE), "pluginspage");
211  s_idTable->addStaticMapping(localNamePart(ATTR_PLUGINURL), "pluginurl");
212  s_idTable->addStaticMapping(localNamePart(ATTR_POSTER), "poster");
213  s_idTable->addStaticMapping(localNamePart(ATTR_READONLY), "readonly");
214  s_idTable->addStaticMapping(localNamePart(ATTR_REL), "rel");
215  s_idTable->addStaticMapping(localNamePart(ATTR_REV), "rev");
216  s_idTable->addStaticMapping(localNamePart(ATTR_ROWS), "rows");
217  s_idTable->addStaticMapping(localNamePart(ATTR_ROWSPAN), "rowspan");
218  s_idTable->addStaticMapping(localNamePart(ATTR_RULES), "rules");
219  s_idTable->addStaticMapping(localNamePart(ATTR_SCOPE), "scope");
220  s_idTable->addStaticMapping(localNamePart(ATTR_SCROLLAMOUNT), "scrollamount");
221  s_idTable->addStaticMapping(localNamePart(ATTR_SCROLLDELAY), "scrolldelay");
222  s_idTable->addStaticMapping(localNamePart(ATTR_SCROLLING), "scrolling");
223  s_idTable->addStaticMapping(localNamePart(ATTR_SELECTED), "selected");
224  s_idTable->addStaticMapping(localNamePart(ATTR_SHAPE), "shape");
225  s_idTable->addStaticMapping(localNamePart(ATTR_SIZE), "size");
226  s_idTable->addStaticMapping(localNamePart(ATTR_START), "start");
227  s_idTable->addStaticMapping(localNamePart(ATTR_TABINDEX), "tabindex");
228  s_idTable->addStaticMapping(localNamePart(ATTR_TARGET), "target");
229  s_idTable->addStaticMapping(localNamePart(ATTR_TEXT), "text");
230  s_idTable->addStaticMapping(localNamePart(ATTR_TOP), "top");
231  s_idTable->addStaticMapping(localNamePart(ATTR_TOPMARGIN), "topmargin");
232  s_idTable->addStaticMapping(localNamePart(ATTR_TRUESPEED), "truespeed");
233  s_idTable->addStaticMapping(localNamePart(ATTR_XLINK_TYPE), "type");
234  s_idTable->addStaticMapping(localNamePart(ATTR_UNKNOWN), "unknown");
235  s_idTable->addStaticMapping(localNamePart(ATTR_VALIGN), "valign");
236  s_idTable->addStaticMapping(localNamePart(ATTR_VALUETYPE), "valuetype");
237  s_idTable->addStaticMapping(localNamePart(ATTR_VERSION), "version");
238  s_idTable->addStaticMapping(localNamePart(ATTR_VISIBILITY), "visibility");
239  s_idTable->addStaticMapping(localNamePart(ATTR_VLINK), "vlink");
240  s_idTable->addStaticMapping(localNamePart(ATTR_VSPACE), "vspace");
241  s_idTable->addStaticMapping(localNamePart(ATTR_WIDTH), "width");
242  s_idTable->addStaticMapping(localNamePart(ATTR_WRAP), "wrap");
243  s_idTable->addStaticMapping(localNamePart(ATTR_Z_INDEX), "z-index");
244  s_idTable->addStaticMapping(localNamePart(ATTR_ACTION), "action");
245  s_idTable->addStaticMapping(localNamePart(ATTR_ALT), "alt");
246  s_idTable->addStaticMapping(localNamePart(ATTR_ARCHIVE), "archive");
247  s_idTable->addStaticMapping(localNamePart(ATTR_BACKGROUND), "background");
248  s_idTable->addStaticMapping(localNamePart(ATTR_CLASS), "class");
249  s_idTable->addStaticMapping(localNamePart(ATTR_CLASSID), "classid");
250  s_idTable->addStaticMapping(localNamePart(ATTR_CODEBASE), "codebase");
251  s_idTable->addStaticMapping(localNamePart(ATTR_CONTENT), "content");
252  s_idTable->addStaticMapping(localNamePart(ATTR_DATA), "data");
253  s_idTable->addStaticMapping(localNamePart(ATTR_DATETIME), "datetime");
254  s_idTable->addStaticMapping(localNamePart(ATTR_FOR), "for");
255  s_idTable->addStaticMapping(localNamePart(ATTR_HEADERS), "headers");
256  s_idTable->addStaticMapping(localNamePart(ATTR_XLINK_HREF), "href");
257  s_idTable->addStaticMapping(localNamePart(ATTR_ID), "id");
258  s_idTable->addStaticMapping(localNamePart(ATTR_LONGDESC), "longdesc");
259  s_idTable->addStaticMapping(localNamePart(ATTR_NAME), "name");
260  s_idTable->addStaticMapping(localNamePart(ATTR_ONBLUR), "onblur");
261  s_idTable->addStaticMapping(localNamePart(ATTR_ONCHANGE), "onchange");
262  s_idTable->addStaticMapping(localNamePart(ATTR_ONCLICK), "onclick");
263  s_idTable->addStaticMapping(localNamePart(ATTR_ONDBLCLICK), "ondblclick");
264  s_idTable->addStaticMapping(localNamePart(ATTR_ONFOCUS), "onfocus");
265  s_idTable->addStaticMapping(localNamePart(ATTR_ONHASHCHANGE), "onhashchange");
266  s_idTable->addStaticMapping(localNamePart(ATTR_ONKEYDOWN), "onkeydown");
267  s_idTable->addStaticMapping(localNamePart(ATTR_ONKEYPRESS), "onkeypress");
268  s_idTable->addStaticMapping(localNamePart(ATTR_ONKEYUP), "onkeyup");
269  s_idTable->addStaticMapping(localNamePart(ATTR_ONLOAD), "onload");
270  s_idTable->addStaticMapping(localNamePart(ATTR_ONMESSAGE), "onmessage");
271  s_idTable->addStaticMapping(localNamePart(ATTR_ONMOUSEDOWN), "onmousedown");
272  s_idTable->addStaticMapping(localNamePart(ATTR_ONMOUSEMOVE), "onmousemove");
273  s_idTable->addStaticMapping(localNamePart(ATTR_ONMOUSEOUT), "onmouseout");
274  s_idTable->addStaticMapping(localNamePart(ATTR_ONMOUSEOVER), "onmouseover");
275  s_idTable->addStaticMapping(localNamePart(ATTR_ONMOUSEUP), "onmouseup");
276  s_idTable->addStaticMapping(localNamePart(ATTR_ONRESET), "onreset");
277  s_idTable->addStaticMapping(localNamePart(ATTR_ONSELECT), "onselect");
278  s_idTable->addStaticMapping(localNamePart(ATTR_ONSCROLL), "onscroll");
279  s_idTable->addStaticMapping(localNamePart(ATTR_ONSUBMIT), "onsubmit");
280  s_idTable->addStaticMapping(localNamePart(ATTR_ONUNLOAD), "onunload");
281  s_idTable->addStaticMapping(localNamePart(ATTR_PROFILE), "profile");
282  s_idTable->addStaticMapping(localNamePart(ATTR_PROMPT), "prompt");
283  s_idTable->addStaticMapping(localNamePart(ATTR_SCHEME), "scheme");
284  s_idTable->addStaticMapping(localNamePart(ATTR_SRC), "src");
285  s_idTable->addStaticMapping(localNamePart(ATTR_STANDBY), "standby");
286  s_idTable->addStaticMapping(localNamePart(ATTR_SUMMARY), "summary");
287  s_idTable->addStaticMapping(localNamePart(ATTR_USEMAP), "usemap");
288  s_idTable->addStaticMapping(localNamePart(ATTR_VALUE), "value");
289  s_idTable->addStaticMapping(localNamePart(ATTR_XMLNS), "xmlns");
290  s_idTable->addStaticMapping(localNamePart(ID_ALTGLYPH), "altGlyph");
291  s_idTable->addStaticMapping(localNamePart(ID_ALTGLYPHDEF), "altGlyphDef");
292  s_idTable->addStaticMapping(localNamePart(ID_ALTGLYPHITEM), "altGlyphItem");
293  s_idTable->addStaticMapping(localNamePart(ID_ANIMATE), "animate");
294  s_idTable->addStaticMapping(localNamePart(ID_ANIMATECOLOR), "animateColor");
295  s_idTable->addStaticMapping(localNamePart(ID_ANIMATEMOTION), "animateMotion");
296  s_idTable->addStaticMapping(localNamePart(ID_ANIMATETRANSFORM), "animateTransform");
297  s_idTable->addStaticMapping(localNamePart(ID_SET), "set");
298  s_idTable->addStaticMapping(localNamePart(ID_CIRCLE), "circle");
299  s_idTable->addStaticMapping(localNamePart(ID_CLIPPATH), "clipPath");
300  s_idTable->addStaticMapping(localNamePart(ID_COLOR_PROFILE), "color_profile");
301  s_idTable->addStaticMapping(localNamePart(ID_CURSOR), "cursor");
302  s_idTable->addStaticMapping(localNamePart(ID_DEFINITION_SRC), "definition_src");
303  s_idTable->addStaticMapping(localNamePart(ID_DEFS), "defs");
304  s_idTable->addStaticMapping(localNamePart(ID_DESC), "desc");
305  s_idTable->addStaticMapping(localNamePart(ID_ELLIPSE), "ellipse");
306  s_idTable->addStaticMapping(localNamePart(ID_FEBLEND), "feBlend");
307  s_idTable->addStaticMapping(localNamePart(ID_FECOLORMATRIX), "feColorMatrix");
308  s_idTable->addStaticMapping(localNamePart(ID_FECOMPONENTTRANSFER), "feComponentTransfer");
309  s_idTable->addStaticMapping(localNamePart(ID_FECOMPOSITE), "feComposite");
310  s_idTable->addStaticMapping(localNamePart(ID_FECONVOLVEMATRIX), "feConvolveMatrix");
311  s_idTable->addStaticMapping(localNamePart(ID_FEDIFFUSELIGHTING), "feDiffuseLighting");
312  s_idTable->addStaticMapping(localNamePart(ID_FEDISPLACEMENTMAP), "feDisplacementMap");
313  s_idTable->addStaticMapping(localNamePart(ID_FEDISTANTLIGHT), "feDistantLight");
314  s_idTable->addStaticMapping(localNamePart(ID_FEFLOOD), "feFlood");
315  s_idTable->addStaticMapping(localNamePart(ID_FEFUNCA), "feFuncA");
316  s_idTable->addStaticMapping(localNamePart(ID_FEFUNCB), "feFuncB");
317  s_idTable->addStaticMapping(localNamePart(ID_FEFUNCG), "feFuncG");
318  s_idTable->addStaticMapping(localNamePart(ID_FEFUNCR), "feFuncR");
319  s_idTable->addStaticMapping(localNamePart(ID_FEGAUSSIANBLUR), "feGaussianBlur");
320  s_idTable->addStaticMapping(localNamePart(ID_FEIMAGE), "feImage");
321  s_idTable->addStaticMapping(localNamePart(ID_FEMERGE), "feMerge");
322  s_idTable->addStaticMapping(localNamePart(ID_FEMERGENODE), "feMergeNode");
323  s_idTable->addStaticMapping(localNamePart(ID_FEMORPHOLOGY), "feMorphology");
324  s_idTable->addStaticMapping(localNamePart(ID_FEOFFSET), "feOffset");
325  s_idTable->addStaticMapping(localNamePart(ID_FEPOINTLIGHT), "fePointLight");
326  s_idTable->addStaticMapping(localNamePart(ID_FESPECULARLIGHTING), "feSpecularLighting");
327  s_idTable->addStaticMapping(localNamePart(ID_FESPOTLIGHT), "feSpotLight");
328  s_idTable->addStaticMapping(localNamePart(ID_FETILE), "feTile");
329  s_idTable->addStaticMapping(localNamePart(ID_FETURBULENCE), "feTurbulence");
330  s_idTable->addStaticMapping(localNamePart(ID_FILTER), "filter");
331  s_idTable->addStaticMapping(localNamePart(ID_FONT_FACE), "font_face");
332  s_idTable->addStaticMapping(localNamePart(ID_FONT_FACE_FORMAT), "font_face_format");
333  s_idTable->addStaticMapping(localNamePart(ID_FONT_FACE_NAME), "font_face_name");
334  s_idTable->addStaticMapping(localNamePart(ID_FONT_FACE_SRC), "font_face_src");
335  s_idTable->addStaticMapping(localNamePart(ID_FONT_FACE_URI), "font_face_uri");
336  s_idTable->addStaticMapping(localNamePart(ID_FOREIGNOBJECT), "foreignObject");
337  s_idTable->addStaticMapping(localNamePart(ID_G), "g");
338  s_idTable->addStaticMapping(localNamePart(ID_GLYPH), "glyph");
339  s_idTable->addStaticMapping(localNamePart(ID_GLYPHREF), "glyphRef");
340  s_idTable->addStaticMapping(localNamePart(ID_HKERN), "hkern");
341  s_idTable->addStaticMapping(localNamePart(ID_LINE), "line");
342  s_idTable->addStaticMapping(localNamePart(ID_LINEARGRADIENT), "linearGradient");
343  s_idTable->addStaticMapping(localNamePart(ID_MARKER), "marker");
344  s_idTable->addStaticMapping(localNamePart(ID_MASK), "mask");
345  s_idTable->addStaticMapping(localNamePart(ID_METADATA), "metadata");
346  s_idTable->addStaticMapping(localNamePart(ID_MISSING_GLYPH), "missing_glyph");
347  s_idTable->addStaticMapping(localNamePart(ID_MPATH), "mpath");
348  s_idTable->addStaticMapping(localNamePart(ID_PATH), "path");
349  s_idTable->addStaticMapping(localNamePart(ID_PATTERN), "pattern");
350  s_idTable->addStaticMapping(localNamePart(ID_POLYGON), "polygon");
351  s_idTable->addStaticMapping(localNamePart(ID_POLYLINE), "polyline");
352  s_idTable->addStaticMapping(localNamePart(ID_RADIALGRADIENT), "radialGradient");
353  s_idTable->addStaticMapping(localNamePart(ID_RECT), "rect");
354  s_idTable->addStaticMapping(localNamePart(ID_STOP), "stop");
355  s_idTable->addStaticMapping(localNamePart(ID_SVG), "svg");
356  s_idTable->addStaticMapping(localNamePart(ID_SWITCH), "switch");
357  s_idTable->addStaticMapping(localNamePart(ID_SYMBOL), "symbol");
358  s_idTable->addStaticMapping(localNamePart(ID_TEXTPATH), "textPath");
359  s_idTable->addStaticMapping(localNamePart(ID_TREF), "tref");
360  s_idTable->addStaticMapping(localNamePart(ID_TSPAN), "tspan");
361  s_idTable->addStaticMapping(localNamePart(ID_USE), "use");
362  s_idTable->addStaticMapping(localNamePart(ID_VIEW), "view");
363  s_idTable->addStaticMapping(localNamePart(ID_VKERN), "vkern");
364  s_idTable->addStaticMapping(localNamePart(ATTR_ACCENT_HEIGHT), "accent-height");
365  s_idTable->addStaticMapping(localNamePart(ATTR_ACCUMULATE), "accumulate");
366  s_idTable->addStaticMapping(localNamePart(ATTR_ADDITIVE), "additive");
367  s_idTable->addStaticMapping(localNamePart(ATTR_ALIGNMENT_BASELINE), "alignment-baseline");
368  s_idTable->addStaticMapping(localNamePart(ATTR_ALPHABETIC), "alphabetic");
369  s_idTable->addStaticMapping(localNamePart(ATTR_AMPLITUDE), "amplitude");
370  s_idTable->addStaticMapping(localNamePart(ATTR_ARABIC_FORM), "arabic-form");
371  s_idTable->addStaticMapping(localNamePart(ATTR_ASCENT), "ascent");
372  s_idTable->addStaticMapping(localNamePart(ATTR_ATTRIBUTENAME), "attributeName");
373  s_idTable->addStaticMapping(localNamePart(ATTR_ATTRIBUTETYPE), "attributeType");
374  s_idTable->addStaticMapping(localNamePart(ATTR_AZIMUTH), "azimuth");
375  s_idTable->addStaticMapping(localNamePart(ATTR_BASEFREQUENCY), "baseFrequency");
376  s_idTable->addStaticMapping(localNamePart(ATTR_BASELINE_SHIFT), "baseline-shift");
377  s_idTable->addStaticMapping(localNamePart(ATTR_BASEPROFILE), "baseProfile");
378  s_idTable->addStaticMapping(localNamePart(ATTR_BBOX), "bbox");
379  s_idTable->addStaticMapping(localNamePart(ATTR_BEGIN), "begin");
380  s_idTable->addStaticMapping(localNamePart(ATTR_BIAS), "bias");
381  s_idTable->addStaticMapping(localNamePart(ATTR_BY), "by");
382  s_idTable->addStaticMapping(localNamePart(ATTR_CALCMODE), "calcMode");
383  s_idTable->addStaticMapping(localNamePart(ATTR_CAP_HEIGHT), "cap-height");
384  s_idTable->addStaticMapping(localNamePart(ATTR_CLIP), "clip");
385  s_idTable->addStaticMapping(localNamePart(ATTR_CLIP_PATH), "clip-path");
386  s_idTable->addStaticMapping(localNamePart(ATTR_CLIP_RULE), "clip-rule");
387  s_idTable->addStaticMapping(localNamePart(ATTR_CLIPPATHUNITS), "clipPathUnits");
388  s_idTable->addStaticMapping(localNamePart(ATTR_COLOR_INTERPOLATION), "color-interpolation");
389  s_idTable->addStaticMapping(localNamePart(ATTR_COLOR_INTERPOLATION_FILTERS), "color-interpolation-filters");
390  s_idTable->addStaticMapping(localNamePart(ATTR_COLOR_PROFILE), "color-profile");
391  s_idTable->addStaticMapping(localNamePart(ATTR_COLOR_RENDERING), "color-rendering");
392  s_idTable->addStaticMapping(localNamePart(ATTR_CONTENTSCRIPTTYPE), "contentScriptType");
393  s_idTable->addStaticMapping(localNamePart(ATTR_CONTENTSTYLETYPE), "contentStyleType");
394  s_idTable->addStaticMapping(localNamePart(ATTR_CX), "cx");
395  s_idTable->addStaticMapping(localNamePart(ATTR_CY), "cy");
396  s_idTable->addStaticMapping(localNamePart(ATTR_D), "d");
397  s_idTable->addStaticMapping(localNamePart(ATTR_DESCENT), "descent");
398  s_idTable->addStaticMapping(localNamePart(ATTR_DIFFUSECONSTANT), "diffuseConstant");
399  s_idTable->addStaticMapping(localNamePart(ATTR_DISPLAY), "display");
400  s_idTable->addStaticMapping(localNamePart(ATTR_DIVISOR), "divisor");
401  s_idTable->addStaticMapping(localNamePart(ATTR_DOMINANT_BASELINE), "dominant-baseline");
402  s_idTable->addStaticMapping(localNamePart(ATTR_DUR), "dur");
403  s_idTable->addStaticMapping(localNamePart(ATTR_DX), "dx");
404  s_idTable->addStaticMapping(localNamePart(ATTR_DY), "dy");
405  s_idTable->addStaticMapping(localNamePart(ATTR_EDGEMODE), "edgeMode");
406  s_idTable->addStaticMapping(localNamePart(ATTR_ELEVATION), "elevation");
407  s_idTable->addStaticMapping(localNamePart(ATTR_ENABLE_BACKGROUND), "enable-background");
408  s_idTable->addStaticMapping(localNamePart(ATTR_END), "end");
409  s_idTable->addStaticMapping(localNamePart(ATTR_EXPONENT), "exponent");
410  s_idTable->addStaticMapping(localNamePart(ATTR_EXTERNALRESOURCESREQUIRED), "externalResourcesRequired");
411  s_idTable->addStaticMapping(localNamePart(ATTR_FILL), "fill");
412  s_idTable->addStaticMapping(localNamePart(ATTR_FILL_OPACITY), "fill-opacity");
413  s_idTable->addStaticMapping(localNamePart(ATTR_FILL_RULE), "fill-rule");
414  s_idTable->addStaticMapping(localNamePart(ATTR_FILTERRES), "filterRes");
415  s_idTable->addStaticMapping(localNamePart(ATTR_FILTERUNITS), "filterUnits");
416  s_idTable->addStaticMapping(localNamePart(ATTR_FLOOD_COLOR), "flood-color");
417  s_idTable->addStaticMapping(localNamePart(ATTR_FLOOD_OPACITY), "flood-opacity");
418  s_idTable->addStaticMapping(localNamePart(ATTR_FONT_FAMILY), "font-family");
419  s_idTable->addStaticMapping(localNamePart(ATTR_FONT_SIZE), "font-size");
420  s_idTable->addStaticMapping(localNamePart(ATTR_FONT_SIZE_ADJUST), "font-size-adjust");
421  s_idTable->addStaticMapping(localNamePart(ATTR_FONT_STRETCH), "font-stretch");
422  s_idTable->addStaticMapping(localNamePart(ATTR_FONT_STYLE), "font-style");
423  s_idTable->addStaticMapping(localNamePart(ATTR_FONT_VARIANT), "font-variant");
424  s_idTable->addStaticMapping(localNamePart(ATTR_FONT_WEIGHT), "font-weight");
425  s_idTable->addStaticMapping(localNamePart(ATTR_FORMAT), "format");
426  s_idTable->addStaticMapping(localNamePart(ATTR_FROM), "from");
427  s_idTable->addStaticMapping(localNamePart(ATTR_FX), "fx");
428  s_idTable->addStaticMapping(localNamePart(ATTR_FY), "fy");
429  s_idTable->addStaticMapping(localNamePart(ATTR_G1), "g1");
430  s_idTable->addStaticMapping(localNamePart(ATTR_G2), "g2");
431  s_idTable->addStaticMapping(localNamePart(ATTR_GLYPH_NAME), "glyph-name");
432  s_idTable->addStaticMapping(localNamePart(ATTR_GLYPH_ORIENTATION_HORIZONTAL), "glyph-orientation-horizontal");
433  s_idTable->addStaticMapping(localNamePart(ATTR_GLYPH_ORIENTATION_VERTICAL), "glyph-orientation-vertical");
434  s_idTable->addStaticMapping(localNamePart(ATTR_GRADIENTTRANSFORM), "gradientTransform");
435  s_idTable->addStaticMapping(localNamePart(ATTR_GRADIENTUNITS), "gradientUnits");
436  s_idTable->addStaticMapping(localNamePart(ATTR_HANGING), "hanging");
437  s_idTable->addStaticMapping(localNamePart(ATTR_HORIZ_ADV_X), "horiz-adv-x");
438  s_idTable->addStaticMapping(localNamePart(ATTR_HORIZ_ORIGIN_X), "horiz-origin-x");
439  s_idTable->addStaticMapping(localNamePart(ATTR_HORIZ_ORIGIN_Y), "horiz-origin-y");
440  s_idTable->addStaticMapping(localNamePart(ATTR_IDEOGRAPHIC), "ideographic");
441  s_idTable->addStaticMapping(localNamePart(ATTR_IMAGE_RENDERING), "image-rendering");
442  s_idTable->addStaticMapping(localNamePart(ATTR_IN), "in");
443  s_idTable->addStaticMapping(localNamePart(ATTR_IN2), "in2");
444  s_idTable->addStaticMapping(localNamePart(ATTR_INTERCEPT), "intercept");
445  s_idTable->addStaticMapping(localNamePart(ATTR_K), "k");
446  s_idTable->addStaticMapping(localNamePart(ATTR_K1), "k1");
447  s_idTable->addStaticMapping(localNamePart(ATTR_K2), "k2");
448  s_idTable->addStaticMapping(localNamePart(ATTR_K3), "k3");
449  s_idTable->addStaticMapping(localNamePart(ATTR_K4), "k4");
450  s_idTable->addStaticMapping(localNamePart(ATTR_KERNELMATRIX), "kernelMatrix");
451  s_idTable->addStaticMapping(localNamePart(ATTR_KERNELUNITLENGTH), "kernelUnitLength");
452  s_idTable->addStaticMapping(localNamePart(ATTR_KERNING), "kerning");
453  s_idTable->addStaticMapping(localNamePart(ATTR_KEYPOINTS), "keyPoints");
454  s_idTable->addStaticMapping(localNamePart(ATTR_KEYSPLINES), "keySplines");
455  s_idTable->addStaticMapping(localNamePart(ATTR_KEYTIMES), "keyTimes");
456  s_idTable->addStaticMapping(localNamePart(ATTR_LENGTHADJUST), "lengthAdjust");
457  s_idTable->addStaticMapping(localNamePart(ATTR_LETTER_SPACING), "letter-spacing");
458  s_idTable->addStaticMapping(localNamePart(ATTR_LIGHTING_COLOR), "lighting-color");
459  s_idTable->addStaticMapping(localNamePart(ATTR_LIMITINGCONEANGLE), "limitingConeAngle");
460  s_idTable->addStaticMapping(localNamePart(ATTR_LOCAL), "local");
461  s_idTable->addStaticMapping(localNamePart(ATTR_MARKER_END), "marker-end");
462  s_idTable->addStaticMapping(localNamePart(ATTR_MARKER_MID), "marker-mid");
463  s_idTable->addStaticMapping(localNamePart(ATTR_MARKER_START), "marker-start");
464  s_idTable->addStaticMapping(localNamePart(ATTR_MARKERHEIGHT), "markerHeight");
465  s_idTable->addStaticMapping(localNamePart(ATTR_MARKERUNITS), "markerUnits");
466  s_idTable->addStaticMapping(localNamePart(ATTR_MARKERWIDTH), "markerWidth");
467  s_idTable->addStaticMapping(localNamePart(ATTR_MASKCONTENTUNITS), "maskContentUnits");
468  s_idTable->addStaticMapping(localNamePart(ATTR_MASKUNITS), "maskUnits");
469  s_idTable->addStaticMapping(localNamePart(ATTR_MATHEMATICAL), "mathematical");
470  s_idTable->addStaticMapping(localNamePart(ATTR_MAX), "max");
471  s_idTable->addStaticMapping(localNamePart(ATTR_MIN), "min");
472  s_idTable->addStaticMapping(localNamePart(ATTR_MODE), "mode");
473  s_idTable->addStaticMapping(localNamePart(ATTR_NUMOCTAVES), "numOctaves");
474  s_idTable->addStaticMapping(localNamePart(ATTR_OFFSET), "offset");
475  s_idTable->addStaticMapping(localNamePart(ATTR_ONACTIVATE), "onactivate");
476  s_idTable->addStaticMapping(localNamePart(ATTR_ONBEGIN), "onbegin");
477  s_idTable->addStaticMapping(localNamePart(ATTR_ONEND), "onend");
478  s_idTable->addStaticMapping(localNamePart(ATTR_ONFOCUSIN), "onfocusin");
479  s_idTable->addStaticMapping(localNamePart(ATTR_ONFOCUSOUT), "onfocusout");
480  s_idTable->addStaticMapping(localNamePart(ATTR_ONREPEAT), "onrepeat");
481  s_idTable->addStaticMapping(localNamePart(ATTR_ONZOOM), "onzoom");
482  s_idTable->addStaticMapping(localNamePart(ATTR_OPACITY), "opacity");
483  s_idTable->addStaticMapping(localNamePart(ATTR_OPERATOR), "operator");
484  s_idTable->addStaticMapping(localNamePart(ATTR_ORDER), "order");
485  s_idTable->addStaticMapping(localNamePart(ATTR_ORIENT), "orient");
486  s_idTable->addStaticMapping(localNamePart(ATTR_ORIENTATION), "orientation");
487  s_idTable->addStaticMapping(localNamePart(ATTR_ORIGIN), "origin");
488  s_idTable->addStaticMapping(localNamePart(ATTR_OVERFLOW), "overflow");
489  s_idTable->addStaticMapping(localNamePart(ATTR_OVERLINE_POSITION), "overline-position");
490  s_idTable->addStaticMapping(localNamePart(ATTR_OVERLINE_THICKNESS), "overline-thickness");
491  s_idTable->addStaticMapping(localNamePart(ATTR_PANOSE_1), "panose-1");
492  s_idTable->addStaticMapping(localNamePart(ATTR_PATHLENGTH), "pathLength");
493  s_idTable->addStaticMapping(localNamePart(ATTR_PATTERNCONTENTUNITS), "patternContentUnits");
494  s_idTable->addStaticMapping(localNamePart(ATTR_PATTERNTRANSFORM), "patternTransform");
495  s_idTable->addStaticMapping(localNamePart(ATTR_PATTERNUNITS), "patternUnits");
496  s_idTable->addStaticMapping(localNamePart(ATTR_POINTER_EVENTS), "pointer-events");
497  s_idTable->addStaticMapping(localNamePart(ATTR_POINTS), "points");
498  s_idTable->addStaticMapping(localNamePart(ATTR_POINTSATX), "pointsAtX");
499  s_idTable->addStaticMapping(localNamePart(ATTR_POINTSATY), "pointsAtY");
500  s_idTable->addStaticMapping(localNamePart(ATTR_POINTSATZ), "pointsAtZ");
501  s_idTable->addStaticMapping(localNamePart(ATTR_PRESERVEALPHA), "preserveAlpha");
502  s_idTable->addStaticMapping(localNamePart(ATTR_PRESERVEASPECTRATIO), "preserveAspectRatio");
503  s_idTable->addStaticMapping(localNamePart(ATTR_PRIMITIVEUNITS), "primitiveUnits");
504  s_idTable->addStaticMapping(localNamePart(ATTR_R), "r");
505  s_idTable->addStaticMapping(localNamePart(ATTR_RADIUS), "radius");
506  s_idTable->addStaticMapping(localNamePart(ATTR_REFX), "refX");
507  s_idTable->addStaticMapping(localNamePart(ATTR_REFY), "refY");
508  s_idTable->addStaticMapping(localNamePart(ATTR_RENDERING_INTENT), "rendering-intent");
509  s_idTable->addStaticMapping(localNamePart(ATTR_REPEATCOUNT), "repeatCount");
510  s_idTable->addStaticMapping(localNamePart(ATTR_REPEATDUR), "repeatDur");
511  s_idTable->addStaticMapping(localNamePart(ATTR_REQUIREDEXTENSIONS), "requiredExtensions");
512  s_idTable->addStaticMapping(localNamePart(ATTR_REQUIREDFEATURES), "requiredFeatures");
513  s_idTable->addStaticMapping(localNamePart(ATTR_RESTART), "restart");
514  s_idTable->addStaticMapping(localNamePart(ATTR_RESULT), "result");
515  s_idTable->addStaticMapping(localNamePart(ATTR_ROTATE), "rotate");
516  s_idTable->addStaticMapping(localNamePart(ATTR_RX), "rx");
517  s_idTable->addStaticMapping(localNamePart(ATTR_RY), "ry");
518  s_idTable->addStaticMapping(localNamePart(ATTR_SCALE), "scale");
519  s_idTable->addStaticMapping(localNamePart(ATTR_SEED), "seed");
520  s_idTable->addStaticMapping(localNamePart(ATTR_SHAPE_RENDERING), "shape-rendering");
521  s_idTable->addStaticMapping(localNamePart(ATTR_SLOPE), "slope");
522  s_idTable->addStaticMapping(localNamePart(ATTR_SPACING), "spacing");
523  s_idTable->addStaticMapping(localNamePart(ATTR_SPECULARCONSTANT), "specularConstant");
524  s_idTable->addStaticMapping(localNamePart(ATTR_SPECULAREXPONENT), "specularExponent");
525  s_idTable->addStaticMapping(localNamePart(ATTR_SPREADMETHOD), "spreadMethod");
526  s_idTable->addStaticMapping(localNamePart(ATTR_STARTOFFSET), "startOffset");
527  s_idTable->addStaticMapping(localNamePart(ATTR_STDDEVIATION), "stdDeviation");
528  s_idTable->addStaticMapping(localNamePart(ATTR_STEMH), "stemh");
529  s_idTable->addStaticMapping(localNamePart(ATTR_STEMV), "stemv");
530  s_idTable->addStaticMapping(localNamePart(ATTR_STITCHTILES), "stitchTiles");
531  s_idTable->addStaticMapping(localNamePart(ATTR_STOP_COLOR), "stop-color");
532  s_idTable->addStaticMapping(localNamePart(ATTR_STOP_OPACITY), "stop-opacity");
533  s_idTable->addStaticMapping(localNamePart(ATTR_STRIKETHROUGH_POSITION), "strikethrough-position");
534  s_idTable->addStaticMapping(localNamePart(ATTR_STRIKETHROUGH_THICKNESS), "strikethrough-thickness");
535  s_idTable->addStaticMapping(localNamePart(ATTR_STROKE), "stroke");
536  s_idTable->addStaticMapping(localNamePart(ATTR_STROKE_DASHARRAY), "stroke-dasharray");
537  s_idTable->addStaticMapping(localNamePart(ATTR_STROKE_DASHOFFSET), "stroke-dashoffset");
538  s_idTable->addStaticMapping(localNamePart(ATTR_STROKE_LINECAP), "stroke-linecap");
539  s_idTable->addStaticMapping(localNamePart(ATTR_STROKE_LINEJOIN), "stroke-linejoin");
540  s_idTable->addStaticMapping(localNamePart(ATTR_STROKE_MITERLIMIT), "stroke-miterlimit");
541  s_idTable->addStaticMapping(localNamePart(ATTR_STROKE_OPACITY), "stroke-opacity");
542  s_idTable->addStaticMapping(localNamePart(ATTR_STROKE_WIDTH), "stroke-width");
543  s_idTable->addStaticMapping(localNamePart(ATTR_SURFACESCALE), "surfaceScale");
544  s_idTable->addStaticMapping(localNamePart(ATTR_SYSTEMLANGUAGE), "systemLanguage");
545  s_idTable->addStaticMapping(localNamePart(ATTR_TABLEVALUES), "tableValues");
546  s_idTable->addStaticMapping(localNamePart(ATTR_TARGETX), "targetX");
547  s_idTable->addStaticMapping(localNamePart(ATTR_TARGETY), "targetY");
548  s_idTable->addStaticMapping(localNamePart(ATTR_TEXT_ANCHOR), "text-anchor");
549  s_idTable->addStaticMapping(localNamePart(ATTR_TEXT_DECORATION), "text-decoration");
550  s_idTable->addStaticMapping(localNamePart(ATTR_TEXT_RENDERING), "text-rendering");
551  s_idTable->addStaticMapping(localNamePart(ATTR_TEXTLENGTH), "textLength");
552  s_idTable->addStaticMapping(localNamePart(ATTR_TO), "to");
553  s_idTable->addStaticMapping(localNamePart(ATTR_TRANSFORM), "transform");
554  s_idTable->addStaticMapping(localNamePart(ATTR_U1), "u1");
555  s_idTable->addStaticMapping(localNamePart(ATTR_U2), "u2");
556  s_idTable->addStaticMapping(localNamePart(ATTR_UNDERLINE_POSITION), "underline-position");
557  s_idTable->addStaticMapping(localNamePart(ATTR_UNDERLINE_THICKNESS), "underline-thickness");
558  s_idTable->addStaticMapping(localNamePart(ATTR_UNICODE), "unicode");
559  s_idTable->addStaticMapping(localNamePart(ATTR_UNICODE_BIDI), "unicode-bidi");
560  s_idTable->addStaticMapping(localNamePart(ATTR_UNICODE_RANGE), "unicode-range");
561  s_idTable->addStaticMapping(localNamePart(ATTR_UNITS_PER_EM), "units-per-em");
562  s_idTable->addStaticMapping(localNamePart(ATTR_V_ALPHABETIC), "v-alphabetic");
563  s_idTable->addStaticMapping(localNamePart(ATTR_V_HANGING), "v-hanging");
564  s_idTable->addStaticMapping(localNamePart(ATTR_V_IDEOGRAPHIC), "v-ideographic");
565  s_idTable->addStaticMapping(localNamePart(ATTR_V_MATHEMATICAL), "v-mathematical");
566  s_idTable->addStaticMapping(localNamePart(ATTR_VALUES), "values");
567  s_idTable->addStaticMapping(localNamePart(ATTR_VERT_ADV_Y), "vert-adv-y");
568  s_idTable->addStaticMapping(localNamePart(ATTR_VERT_ORIGIN_X), "vert-origin-x");
569  s_idTable->addStaticMapping(localNamePart(ATTR_VERT_ORIGIN_Y), "vert-origin-y");
570  s_idTable->addStaticMapping(localNamePart(ATTR_VIEWBOX), "viewBox");
571  s_idTable->addStaticMapping(localNamePart(ATTR_VIEWTARGET), "viewTarget");
572  s_idTable->addStaticMapping(localNamePart(ATTR_WIDTHS), "widths");
573  s_idTable->addStaticMapping(localNamePart(ATTR_WORD_SPACING), "word-spacing");
574  s_idTable->addStaticMapping(localNamePart(ATTR_WRITING_MODE), "writing-mode");
575  s_idTable->addStaticMapping(localNamePart(ATTR_X), "x");
576  s_idTable->addStaticMapping(localNamePart(ATTR_X_HEIGHT), "x-height");
577  s_idTable->addStaticMapping(localNamePart(ATTR_X1), "x1");
578  s_idTable->addStaticMapping(localNamePart(ATTR_X2), "x2");
579  s_idTable->addStaticMapping(localNamePart(ATTR_XCHANNELSELECTOR), "xChannelSelector");
580  s_idTable->addStaticMapping(localNamePart(ATTR_Y), "y");
581  s_idTable->addStaticMapping(localNamePart(ATTR_Y1), "y1");
582  s_idTable->addStaticMapping(localNamePart(ATTR_Y2), "y2");
583  s_idTable->addStaticMapping(localNamePart(ATTR_YCHANNELSELECTOR), "yChannelSelector");
584  s_idTable->addStaticMapping(localNamePart(ATTR_Z), "z");
585  s_idTable->addStaticMapping(localNamePart(ATTR_ZOOMANDPAN), "zoomAndPan");
586  s_idTable->addStaticMapping(localNamePart(ATTR_XLINK_ACTUATE), "actuate");
587  s_idTable->addStaticMapping(localNamePart(ATTR_XLINK_ARCROLE), "arcrole");
588  s_idTable->addStaticMapping(localNamePart(ATTR_XLINK_ROLE), "role");
589  s_idTable->addStaticMapping(localNamePart(ATTR_XLINK_SHOW), "show");
590  s_idTable->addStaticMapping(localNamePart(ATTR_XML_SPACE), "space");
591  return s_idTable;
592 }
593 
594 IDTable<PrefixFactory> *PrefixFactory::s_idTable;
595 IDTable<PrefixFactory> *PrefixFactory::initIdTable()
596 {
597  if (s_idTable) {
598  return s_idTable; // Can happen if KHTMLGlobal was recreated..
599  }
600  s_idTable = new IDTable<PrefixFactory>();
601  s_idTable->addStaticMapping(DOM::emptyPrefix, DOMString());
602  s_idTable->addStaticMapping(DOM::xmlPrefix, "xml");
603  s_idTable->addStaticMapping(DOM::xmlnsPrefix, "xmlns");
604  return s_idTable;
605 }
606 
607 }
608 
609 namespace DOM
610 {
611 
612 LocalName emptyLocalName;// = LocalName::fromId(0);
613 PrefixName emptyPrefixName;// = PrefixName::fromId(0);
614 NamespaceName emptyNamespaceName;// = NamespaceName::fromId(0);
615 
616 QString getPrintableName(int id)
617 {
618  QString local = QString("null");
619  QString namespacename = QString("null");
620 
621  if (localNamePart(id) != anyLocalName) {
622  DOMString localName = LocalName::fromId(localNamePart(id)).toString();
623  if (localName.implementation()) {
624  local = localName.string();
625  }
626  } else {
627  local = "*";
628  }
629 
630  if (namespacePart(id) != anyNamespace) {
631  DOMString namespaceName = NamespaceName::fromId(namespacePart(id)).toString();
632  if (namespaceName.implementation()) {
633  namespacename = namespaceName.string();
634  }
635  } else {
636  namespacename = "*";
637  }
638  return "{ns:" + QString::number(namespacePart(id)) + ",[" + namespacename + "] local:" + QString::number(localNamePart(id)) + ",[" + local + "]}";
639 }
640 
641 }
This file is part of the HTML rendering engine for KDE.
QString number(int n, int base)
This class implements the basic string we use in the DOM.
Definition: dom_string.h:44
This library provides a full-featured HTML parser and widget.
DOMStringImpl * implementation() const
Definition: dom_string.h:145
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Oct 26 2021 22:48:03 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.