parser/htmlparser/src/nsElementTable.cpp

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* vim: set ts=2 sw=2 et tw=78: */
michael@0 3 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 6
michael@0 7
michael@0 8 #include "nsIAtom.h"
michael@0 9 #include "nsElementTable.h"
michael@0 10
michael@0 11 /*****************************************************************************
michael@0 12 Now it's time to list all the html elements all with their capabilities...
michael@0 13 ******************************************************************************/
michael@0 14
michael@0 15 // The Element Table (sung to the tune of Modern Major General)
michael@0 16
michael@0 17 const nsHTMLElement gHTMLElements[] = {
michael@0 18 {
michael@0 19 /*tag*/ eHTMLTag_unknown,
michael@0 20 /*parent,leaf*/ kNone, true
michael@0 21 },
michael@0 22 {
michael@0 23 /*tag*/ eHTMLTag_a,
michael@0 24 /*parent,leaf*/ kSpecial, false
michael@0 25 },
michael@0 26 {
michael@0 27 /*tag*/ eHTMLTag_abbr,
michael@0 28 /*parent,leaf*/ kPhrase, false
michael@0 29 },
michael@0 30 {
michael@0 31 /*tag*/ eHTMLTag_acronym,
michael@0 32 /*parent,leaf*/ kPhrase, false
michael@0 33 },
michael@0 34 {
michael@0 35 /*tag*/ eHTMLTag_address,
michael@0 36 /*parent,leaf*/ kBlock, false
michael@0 37 },
michael@0 38 {
michael@0 39 /*tag*/ eHTMLTag_applet,
michael@0 40 /*parent,leaf*/ kSpecial, false
michael@0 41 },
michael@0 42 {
michael@0 43 /*tag*/ eHTMLTag_area,
michael@0 44 /*parent,leaf*/ kNone, true
michael@0 45 },
michael@0 46 {
michael@0 47 /*tag*/ eHTMLTag_article,
michael@0 48 /*parent,leaf*/ kBlock, false
michael@0 49 },
michael@0 50 {
michael@0 51 /*tag*/ eHTMLTag_aside,
michael@0 52 /*parent,leaf*/ kBlock, false
michael@0 53 },
michael@0 54 {
michael@0 55 /*tag*/ eHTMLTag_audio,
michael@0 56 /*parent,leaf*/ kSpecial, false
michael@0 57 },
michael@0 58 {
michael@0 59 /*tag*/ eHTMLTag_b,
michael@0 60 /*parent,leaf*/ kFontStyle, false
michael@0 61 },
michael@0 62 {
michael@0 63 /*tag*/ eHTMLTag_base,
michael@0 64 /*parent,leaf*/ kHeadContent, true
michael@0 65 },
michael@0 66 {
michael@0 67 /*tag*/ eHTMLTag_basefont,
michael@0 68 /*parent,leaf*/ kSpecial, true
michael@0 69 },
michael@0 70 {
michael@0 71 /*tag*/ eHTMLTag_bdo,
michael@0 72 /*parent,leaf*/ kSpecial, false
michael@0 73 },
michael@0 74 {
michael@0 75 /*tag*/ eHTMLTag_bgsound,
michael@0 76 /*parent,leaf*/ (kFlowEntity|kHeadMisc), true
michael@0 77 },
michael@0 78 {
michael@0 79 /*tag*/ eHTMLTag_big,
michael@0 80 /*parent,leaf*/ kFontStyle, false
michael@0 81 },
michael@0 82 {
michael@0 83 /*tag*/ eHTMLTag_blockquote,
michael@0 84 /*parent,leaf*/ kBlock, false
michael@0 85 },
michael@0 86 {
michael@0 87 /*tag*/ eHTMLTag_body,
michael@0 88 /*parent,leaf*/ kHTMLContent, false
michael@0 89 },
michael@0 90 {
michael@0 91 /*tag*/ eHTMLTag_br,
michael@0 92 /*parent,leaf*/ kSpecial, true
michael@0 93 },
michael@0 94 {
michael@0 95 /*tag*/ eHTMLTag_button,
michael@0 96 /*parent,leaf*/ kFormControl, false
michael@0 97 },
michael@0 98 {
michael@0 99 /*tag*/ eHTMLTag_canvas,
michael@0 100 /*parent,leaf*/ kSpecial, false
michael@0 101 },
michael@0 102 {
michael@0 103 /*tag*/ eHTMLTag_caption,
michael@0 104 /*parent,leaf*/ kNone, false
michael@0 105 },
michael@0 106 {
michael@0 107 /*tag*/ eHTMLTag_center,
michael@0 108 /*parent,leaf*/ kBlock, false
michael@0 109 },
michael@0 110 {
michael@0 111 /*tag*/ eHTMLTag_cite,
michael@0 112 /*parent,leaf*/ kPhrase, false
michael@0 113 },
michael@0 114 {
michael@0 115 /*tag*/ eHTMLTag_code,
michael@0 116 /*parent,leaf*/ kPhrase, false
michael@0 117 },
michael@0 118 {
michael@0 119 /*tag*/ eHTMLTag_col,
michael@0 120 /*parent,leaf*/ kNone, true
michael@0 121 },
michael@0 122 {
michael@0 123 /*tag*/ eHTMLTag_colgroup,
michael@0 124 /*parent,leaf*/ kNone, false
michael@0 125 },
michael@0 126 {
michael@0 127 /*tag*/ eHTMLTag_content,
michael@0 128 /*parent,leaf*/ kNone, false
michael@0 129 },
michael@0 130 {
michael@0 131 /*tag*/ eHTMLTag_data,
michael@0 132 /*parent,leaf*/ kPhrase, false
michael@0 133 },
michael@0 134 {
michael@0 135 /*tag*/ eHTMLTag_datalist,
michael@0 136 /*parent,leaf*/ kSpecial, false
michael@0 137 },
michael@0 138 {
michael@0 139 /*tag*/ eHTMLTag_dd,
michael@0 140 /*parent,leaf*/ kInlineEntity, false
michael@0 141 },
michael@0 142 {
michael@0 143 /*tag*/ eHTMLTag_del,
michael@0 144 /*parent,leaf*/ kFlowEntity, false
michael@0 145 },
michael@0 146 {
michael@0 147 /*tag*/ eHTMLTag_dfn,
michael@0 148 /*parent,leaf*/ kPhrase, false
michael@0 149 },
michael@0 150 {
michael@0 151 /*tag*/ eHTMLTag_dir,
michael@0 152 /*parent,leaf*/ kList, false
michael@0 153 },
michael@0 154 {
michael@0 155 /*tag*/ eHTMLTag_div,
michael@0 156 /*parent,leaf*/ kBlock, false
michael@0 157 },
michael@0 158 {
michael@0 159 /*tag*/ eHTMLTag_dl,
michael@0 160 /*parent,leaf*/ kBlock, false
michael@0 161 },
michael@0 162 {
michael@0 163 /*tag*/ eHTMLTag_dt,
michael@0 164 /*parent,leaf*/ kInlineEntity, false
michael@0 165 },
michael@0 166 {
michael@0 167 /*tag*/ eHTMLTag_em,
michael@0 168 /*parent,leaf*/ kPhrase, false
michael@0 169 },
michael@0 170 {
michael@0 171 /*tag*/ eHTMLTag_embed,
michael@0 172 /*parent,leaf*/ kSpecial, true
michael@0 173 },
michael@0 174 {
michael@0 175 /*tag*/ eHTMLTag_fieldset,
michael@0 176 /*parent,leaf*/ kBlock, false
michael@0 177 },
michael@0 178 {
michael@0 179 /*tag*/ eHTMLTag_figcaption,
michael@0 180 /*parent,leaf*/ kPhrase, false
michael@0 181 },
michael@0 182 {
michael@0 183 /*tag*/ eHTMLTag_figure,
michael@0 184 /*parent,leaf*/ kBlock, false
michael@0 185 },
michael@0 186 {
michael@0 187 /*tag*/ eHTMLTag_font,
michael@0 188 /*parent,leaf*/ kFontStyle, false
michael@0 189 },
michael@0 190 {
michael@0 191 /*tag*/ eHTMLTag_footer,
michael@0 192 /*parent,leaf*/ kBlock, false
michael@0 193 },
michael@0 194 {
michael@0 195 /*tag*/ eHTMLTag_form,
michael@0 196 /*parent,leaf*/ kBlock, false
michael@0 197 },
michael@0 198 {
michael@0 199 /*tag*/ eHTMLTag_frame,
michael@0 200 /*parent,leaf*/ kNone, true
michael@0 201 },
michael@0 202 {
michael@0 203 /*tag*/ eHTMLTag_frameset,
michael@0 204 /*parent,leaf*/ kHTMLContent, false
michael@0 205 },
michael@0 206 {
michael@0 207 /*tag*/ eHTMLTag_h1,
michael@0 208 /*parent,leaf*/ kHeading, false
michael@0 209 },
michael@0 210 {
michael@0 211 /*tag*/ eHTMLTag_h2,
michael@0 212 /*parent,leaf*/ kHeading, false
michael@0 213 },
michael@0 214 {
michael@0 215 /*tag*/ eHTMLTag_h3,
michael@0 216 /*parent,leaf*/ kHeading, false
michael@0 217 },
michael@0 218 {
michael@0 219 /*tag*/ eHTMLTag_h4,
michael@0 220 /*parent,leaf*/ kHeading, false
michael@0 221 },
michael@0 222 {
michael@0 223 /*tag*/ eHTMLTag_h5,
michael@0 224 /*parent,leaf*/ kHeading, false
michael@0 225 },
michael@0 226 {
michael@0 227 /*tag*/ eHTMLTag_h6,
michael@0 228 /*parent,leaf*/ kHeading, false
michael@0 229 },
michael@0 230 {
michael@0 231 /*tag*/ eHTMLTag_head,
michael@0 232 /*parent,leaf*/ kHTMLContent, false
michael@0 233 },
michael@0 234 {
michael@0 235 /*tag*/ eHTMLTag_header,
michael@0 236 /*parent,leaf*/ kBlock, false
michael@0 237 },
michael@0 238 {
michael@0 239 /*tag*/ eHTMLTag_hgroup,
michael@0 240 /*parent,leaf*/ kBlock, false
michael@0 241 },
michael@0 242 {
michael@0 243 /*tag*/ eHTMLTag_hr,
michael@0 244 /*parent,leaf*/ kBlock, true
michael@0 245 },
michael@0 246 {
michael@0 247 /*tag*/ eHTMLTag_html,
michael@0 248 /*parent,leaf*/ kNone, false
michael@0 249 },
michael@0 250 {
michael@0 251 /*tag*/ eHTMLTag_i,
michael@0 252 /*parent,leaf*/ kFontStyle, false
michael@0 253 },
michael@0 254 {
michael@0 255 /*tag*/ eHTMLTag_iframe,
michael@0 256 /*parent,leaf*/ kSpecial, false
michael@0 257 },
michael@0 258 {
michael@0 259 /*tag*/ eHTMLTag_image,
michael@0 260 /*parent,leaf*/ kSpecial, true
michael@0 261 },
michael@0 262 {
michael@0 263 /*tag*/ eHTMLTag_img,
michael@0 264 /*parent,leaf*/ kSpecial, true
michael@0 265 },
michael@0 266 {
michael@0 267 /*tag*/ eHTMLTag_input,
michael@0 268 /*parent,leaf*/ kFormControl, true
michael@0 269 },
michael@0 270 {
michael@0 271 /*tag*/ eHTMLTag_ins,
michael@0 272 /*parent,leaf*/ kFlowEntity, false
michael@0 273 },
michael@0 274 {
michael@0 275 /*tag*/ eHTMLTag_kbd,
michael@0 276 /*parent,leaf*/ kPhrase, false
michael@0 277 },
michael@0 278 {
michael@0 279 /*tag*/ eHTMLTag_keygen,
michael@0 280 /*parent,leaf*/ kFlowEntity, true
michael@0 281 },
michael@0 282 {
michael@0 283 /*tag*/ eHTMLTag_label,
michael@0 284 /*parent,leaf*/ kFormControl, false
michael@0 285 },
michael@0 286 {
michael@0 287 /*tag*/ eHTMLTag_legend,
michael@0 288 /*parent,leaf*/ kNone, false
michael@0 289 },
michael@0 290 {
michael@0 291 /*tag*/ eHTMLTag_li,
michael@0 292 /*parent,leaf*/ kBlockEntity, false
michael@0 293 },
michael@0 294 {
michael@0 295 /*tag*/ eHTMLTag_link,
michael@0 296 /*parent,leaf*/ kAllTags - kHeadContent, true
michael@0 297 },
michael@0 298 {
michael@0 299 /*tag*/ eHTMLTag_listing,
michael@0 300 /*parent,leaf*/ kPreformatted, false
michael@0 301 },
michael@0 302 {
michael@0 303 /*tag*/ eHTMLTag_main,
michael@0 304 /*parent,leaf*/ kBlock, false
michael@0 305 },
michael@0 306 {
michael@0 307 /*tag*/ eHTMLTag_map,
michael@0 308 /*parent,leaf*/ kSpecial, false
michael@0 309 },
michael@0 310 {
michael@0 311 /*tag*/ eHTMLTag_mark,
michael@0 312 /*parent,leaf*/ kSpecial, false
michael@0 313 },
michael@0 314 {
michael@0 315 /*tag*/ eHTMLTag_marquee,
michael@0 316 /*parent,leaf*/ kSpecial, false
michael@0 317 },
michael@0 318 {
michael@0 319 /*tag*/ eHTMLTag_menu,
michael@0 320 /*parent,leaf*/ kList, false
michael@0 321 },
michael@0 322 {
michael@0 323 /*tag*/ eHTMLTag_menuitem,
michael@0 324 /*parent,leaf*/ kFlowEntity, false
michael@0 325 },
michael@0 326 {
michael@0 327 /*tag*/ eHTMLTag_meta,
michael@0 328 /*parent,leaf*/ kHeadContent, true
michael@0 329 },
michael@0 330 {
michael@0 331 /*tag*/ eHTMLTag_meter,
michael@0 332 /*parent,leaf*/ kFormControl, false
michael@0 333 },
michael@0 334 {
michael@0 335 /*tag*/ eHTMLTag_multicol,
michael@0 336 /*parent,leaf*/ kBlock, false
michael@0 337 },
michael@0 338 {
michael@0 339 /*tag*/ eHTMLTag_nav,
michael@0 340 /*parent,leaf*/ kBlock, false
michael@0 341 },
michael@0 342 {
michael@0 343 /*tag*/ eHTMLTag_nobr,
michael@0 344 /*parent,leaf*/ kExtensions, false
michael@0 345 },
michael@0 346 {
michael@0 347 /*tag*/ eHTMLTag_noembed,
michael@0 348 /*parent,leaf*/ kFlowEntity, false
michael@0 349 },
michael@0 350 {
michael@0 351 /*tag*/ eHTMLTag_noframes,
michael@0 352 /*parent,leaf*/ kFlowEntity, false
michael@0 353 },
michael@0 354 {
michael@0 355 /*tag*/ eHTMLTag_noscript,
michael@0 356 /*parent,leaf*/ kFlowEntity|kHeadMisc, false
michael@0 357 },
michael@0 358 {
michael@0 359 /*tag*/ eHTMLTag_object,
michael@0 360 /*parent,leaf*/ kSpecial, false
michael@0 361 },
michael@0 362 {
michael@0 363 /*tag*/ eHTMLTag_ol,
michael@0 364 /*parent,leaf*/ kList, false
michael@0 365 },
michael@0 366 {
michael@0 367 /*tag*/ eHTMLTag_optgroup,
michael@0 368 /*parent,leaf*/ kNone, false
michael@0 369 },
michael@0 370 {
michael@0 371 /*tag*/ eHTMLTag_option,
michael@0 372 /*parent,leaf*/ kNone, false
michael@0 373 },
michael@0 374 {
michael@0 375 /*tag*/ eHTMLTag_output,
michael@0 376 /*parent,leaf*/ kSpecial, false
michael@0 377 },
michael@0 378 {
michael@0 379 /*tag*/ eHTMLTag_p,
michael@0 380 /*parent,leaf*/ kBlock, false
michael@0 381 },
michael@0 382 {
michael@0 383 /*tag*/ eHTMLTag_param,
michael@0 384 /*parent,leaf*/ kSpecial, true
michael@0 385 },
michael@0 386 {
michael@0 387 /*tag*/ eHTMLTag_plaintext,
michael@0 388 /*parent,leaf*/ kExtensions, false
michael@0 389 },
michael@0 390 {
michael@0 391 /*tag*/ eHTMLTag_pre,
michael@0 392 /*parent,leaf*/ kBlock|kPreformatted, false
michael@0 393 },
michael@0 394 {
michael@0 395 /*tag*/ eHTMLTag_progress,
michael@0 396 /*parent,leaf*/ kFormControl, false
michael@0 397 },
michael@0 398 {
michael@0 399 /*tag*/ eHTMLTag_q,
michael@0 400 /*parent,leaf*/ kSpecial, false
michael@0 401 },
michael@0 402 {
michael@0 403 /*tag*/ eHTMLTag_s,
michael@0 404 /*parent,leaf*/ kFontStyle, false
michael@0 405 },
michael@0 406 {
michael@0 407 /*tag*/ eHTMLTag_samp,
michael@0 408 /*parent,leaf*/ kPhrase, false
michael@0 409 },
michael@0 410 {
michael@0 411 /*tag*/ eHTMLTag_script,
michael@0 412 /*parent,leaf*/ (kSpecial|kHeadContent), false
michael@0 413 },
michael@0 414 {
michael@0 415 /*tag*/ eHTMLTag_section,
michael@0 416 /*parent,leaf*/ kBlock, false
michael@0 417 },
michael@0 418 {
michael@0 419 /*tag*/ eHTMLTag_select,
michael@0 420 /*parent,leaf*/ kFormControl, false
michael@0 421 },
michael@0 422 {
michael@0 423 /*tag*/ eHTMLTag_shadow,
michael@0 424 /*parent,leaf*/ kFlowEntity, false
michael@0 425 },
michael@0 426 {
michael@0 427 /*tag*/ eHTMLTag_small,
michael@0 428 /*parent,leaf*/ kFontStyle, false
michael@0 429 },
michael@0 430 {
michael@0 431 /*tag*/ eHTMLTag_source,
michael@0 432 /*parent,leaf*/ kSpecial, true
michael@0 433 },
michael@0 434 {
michael@0 435 /*tag*/ eHTMLTag_span,
michael@0 436 /*parent,leaf*/ kSpecial, false
michael@0 437 },
michael@0 438 {
michael@0 439 /*tag*/ eHTMLTag_strike,
michael@0 440 /*parent,leaf*/ kFontStyle, false
michael@0 441 },
michael@0 442 {
michael@0 443 /*tag*/ eHTMLTag_strong,
michael@0 444 /*parent,leaf*/ kPhrase, false
michael@0 445 },
michael@0 446 {
michael@0 447 /*tag*/ eHTMLTag_style,
michael@0 448 /*parent,leaf*/ kAllTags - kHeadContent, false
michael@0 449 },
michael@0 450 {
michael@0 451 /*tag*/ eHTMLTag_sub,
michael@0 452 /*parent,leaf*/ kSpecial, false
michael@0 453 },
michael@0 454 {
michael@0 455 /*tag*/ eHTMLTag_sup,
michael@0 456 /*parent,leaf*/ kSpecial, false
michael@0 457 },
michael@0 458 {
michael@0 459 /*tag*/ eHTMLTag_table,
michael@0 460 /*parent,leaf*/ kBlock, false
michael@0 461 },
michael@0 462 {
michael@0 463 /*tag*/ eHTMLTag_tbody,
michael@0 464 /*parent,leaf*/ kNone, false
michael@0 465 },
michael@0 466 {
michael@0 467 /*tag*/ eHTMLTag_td,
michael@0 468 /*parent,leaf*/ kNone, false
michael@0 469 },
michael@0 470 {
michael@0 471 /*tag*/ eHTMLTag_textarea,
michael@0 472 /*parent,leaf*/ kFormControl, false
michael@0 473 },
michael@0 474 {
michael@0 475 /*tag*/ eHTMLTag_tfoot,
michael@0 476 /*parent,leaf*/ kNone, false
michael@0 477 },
michael@0 478 {
michael@0 479 /*tag*/ eHTMLTag_th,
michael@0 480 /*parent,leaf*/ kNone, false
michael@0 481 },
michael@0 482 {
michael@0 483 /*tag*/ eHTMLTag_thead,
michael@0 484 /*parent,leaf*/ kNone, false
michael@0 485 },
michael@0 486 {
michael@0 487 /*tag*/ eHTMLTag_template,
michael@0 488 /*parent,leaf*/ kNone, false
michael@0 489 },
michael@0 490 {
michael@0 491 /*tag*/ eHTMLTag_time,
michael@0 492 /*parent,leaf*/ kPhrase, false
michael@0 493 },
michael@0 494 {
michael@0 495 /*tag*/ eHTMLTag_title,
michael@0 496 /*parent,leaf*/ kHeadContent, false
michael@0 497 },
michael@0 498 {
michael@0 499 /*tag*/ eHTMLTag_tr,
michael@0 500 /*parent,leaf*/ kNone, false
michael@0 501 },
michael@0 502 {
michael@0 503 /*tag*/ eHTMLTag_track,
michael@0 504 /*parent,leaf*/ kSpecial, true
michael@0 505 },
michael@0 506 {
michael@0 507 /*tag*/ eHTMLTag_tt,
michael@0 508 /*parent,leaf*/ kFontStyle, false
michael@0 509 },
michael@0 510 {
michael@0 511 /*tag*/ eHTMLTag_u,
michael@0 512 /*parent,leaf*/ kFontStyle, false
michael@0 513 },
michael@0 514 {
michael@0 515 /*tag*/ eHTMLTag_ul,
michael@0 516 /*parent,leaf*/ kList, false
michael@0 517 },
michael@0 518 {
michael@0 519 /*tag*/ eHTMLTag_var,
michael@0 520 /*parent,leaf*/ kPhrase, false
michael@0 521 },
michael@0 522 {
michael@0 523 /*tag*/ eHTMLTag_video,
michael@0 524 /*parent,leaf*/ kSpecial, false
michael@0 525 },
michael@0 526 {
michael@0 527 /*tag*/ eHTMLTag_wbr,
michael@0 528 /*parent,leaf*/ kExtensions, true
michael@0 529 },
michael@0 530 {
michael@0 531 /*tag*/ eHTMLTag_xmp,
michael@0 532 /*parent,leaf*/ kInlineEntity|kPreformatted, false
michael@0 533 },
michael@0 534 {
michael@0 535 /*tag*/ eHTMLTag_text,
michael@0 536 /*parent,leaf*/ kFlowEntity, true
michael@0 537 },
michael@0 538 {
michael@0 539 /*tag*/ eHTMLTag_whitespace,
michael@0 540 /*parent,leaf*/ kFlowEntity|kHeadMisc, true
michael@0 541 },
michael@0 542 {
michael@0 543 /*tag*/ eHTMLTag_newline,
michael@0 544 /*parent,leaf*/ kFlowEntity|kHeadMisc, true
michael@0 545 },
michael@0 546 {
michael@0 547 /*tag*/ eHTMLTag_comment,
michael@0 548 /*parent,leaf*/ kFlowEntity|kHeadMisc, false
michael@0 549 },
michael@0 550 {
michael@0 551 /*tag*/ eHTMLTag_entity,
michael@0 552 /*parent,leaf*/ kFlowEntity, false
michael@0 553 },
michael@0 554 {
michael@0 555 /*tag*/ eHTMLTag_doctypeDecl,
michael@0 556 /*parent,leaf*/ kFlowEntity, false
michael@0 557 },
michael@0 558 {
michael@0 559 /*tag*/ eHTMLTag_markupDecl,
michael@0 560 /*parent,leaf*/ kFlowEntity, false
michael@0 561 },
michael@0 562 {
michael@0 563 /*tag*/ eHTMLTag_instruction,
michael@0 564 /*parent,leaf*/ kFlowEntity, false
michael@0 565 },
michael@0 566 {
michael@0 567 /*tag*/ eHTMLTag_userdefined,
michael@0 568 /*parent,leaf*/ (kFlowEntity|kHeadMisc), false
michael@0 569 },
michael@0 570 };
michael@0 571
michael@0 572 /*********************************************************************************************/
michael@0 573
michael@0 574 bool nsHTMLElement::IsContainer(eHTMLTags aChild)
michael@0 575 {
michael@0 576 return !gHTMLElements[aChild].mLeaf;
michael@0 577 }
michael@0 578
michael@0 579 bool nsHTMLElement::IsMemberOf(int32_t aSet) const
michael@0 580 {
michael@0 581 return TestBits(aSet,mParentBits);
michael@0 582 }
michael@0 583
michael@0 584 #ifdef DEBUG
michael@0 585 void CheckElementTable()
michael@0 586 {
michael@0 587 for (eHTMLTags t = eHTMLTag_unknown; t <= eHTMLTag_userdefined; t = eHTMLTags(t + 1)) {
michael@0 588 NS_ASSERTION(gHTMLElements[t].mTagID == t, "gHTMLElements entries does match tag list.");
michael@0 589 }
michael@0 590 }
michael@0 591 #endif

mercurial