Repository navigation
Commit 032025b
committed
build(html): one generator for the HTML tables, reflect data from webref's packages
The two HTML generators are one: `generate-html-data.js` now emits both
`lib/html/data.js` and the entity region inside `lib/html/syntax.js`, so a
single command covers everything the parser and minifier look a name up in.
The reflected-attribute tables come from `@webref/idl` and `@webref/elements`
rather than a vendored distillation of them, which deletes
`tooling/html-reflect.json` and its `--fetch` refresh: upstream now moves as a
lockfile bump whose regenerated diff is reviewable, instead of an undated copy
that drifts unnoticed. It already had: the packaged IDL derives four attributes
the vendored file missed, so `frame`, `frameset`, `marquee`, `dir`, `listing`
and `xmp` gain the reflected attributes the spec gives them — `noresize`,
`truespeed`, `scrollamount`, `scrolldelay`, `compact` on `dir`, `hspace` and
`vspace` on `marquee`, `width` on `listing`/`xmp`, and the window event
handlers on `frameset`. Nothing is removed.
The entity table stays vendored: WHATWG publishes it as `entities.json` and no
package carries it faithfully — the ones that exist drop the semicolon, which
loses the 106 legacy names that match unterminated. `--fetch` still refreshes
it, and the emitted region is byte-identical apart from its provenance note.1 parent 43d7fc0 commit 032025b
10 files changed
Lines changed: 241 additions & 501 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
572 | 572 | | |
573 | 573 | | |
574 | 574 | | |
575 | | - | |
| 575 | + | |
576 | 576 | | |
577 | 577 | | |
578 | 578 | | |
579 | | - | |
| 579 | + | |
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
| |||
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
589 | | - | |
| 589 | + | |
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
561 | 561 | | |
562 | 562 | | |
563 | 563 | | |
564 | | - | |
565 | 564 | | |
566 | 565 | | |
567 | 566 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
181 | 183 | | |
182 | 184 | | |
183 | 185 | | |
| |||
330 | 332 | | |
331 | 333 | | |
332 | 334 | | |
333 | | - | |
| 335 | + | |
334 | 336 | | |
335 | 337 | | |
336 | 338 | | |
| |||
358 | 360 | | |
359 | 361 | | |
360 | 362 | | |
| 363 | + | |
361 | 364 | | |
362 | 365 | | |
363 | 366 | | |
| |||
369 | 372 | | |
370 | 373 | | |
371 | 374 | | |
372 | | - | |
| 375 | + | |
| 376 | + | |
373 | 377 | | |
374 | 378 | | |
375 | 379 | | |
| |||
435 | 439 | | |
436 | 440 | | |
437 | 441 | | |
438 | | - | |
| 442 | + | |
439 | 443 | | |
440 | 444 | | |
441 | 445 | | |
| |||
444 | 448 | | |
445 | 449 | | |
446 | 450 | | |
| 451 | + | |
447 | 452 | | |
448 | 453 | | |
449 | 454 | | |
| |||
480 | 485 | | |
481 | 486 | | |
482 | 487 | | |
483 | | - | |
| 488 | + | |
484 | 489 | | |
485 | 490 | | |
486 | 491 | | |
487 | 492 | | |
| 493 | + | |
| 494 | + | |
488 | 495 | | |
489 | 496 | | |
490 | 497 | | |
491 | 498 | | |
492 | 499 | | |
493 | | - | |
| 500 | + | |
494 | 501 | | |
495 | 502 | | |
496 | 503 | | |
| |||
499 | 506 | | |
500 | 507 | | |
501 | 508 | | |
| 509 | + | |
502 | 510 | | |
503 | 511 | | |
504 | 512 | | |
505 | | - | |
| 513 | + | |
| 514 | + | |
506 | 515 | | |
507 | 516 | | |
508 | 517 | | |
| |||
533 | 542 | | |
534 | 543 | | |
535 | 544 | | |
536 | | - | |
| 545 | + | |
537 | 546 | | |
538 | 547 | | |
539 | 548 | | |
540 | | - | |
| 549 | + | |
541 | 550 | | |
542 | | - | |
| 551 | + | |
543 | 552 | | |
544 | 553 | | |
545 | 554 | | |
| |||
568 | 577 | | |
569 | 578 | | |
570 | 579 | | |
571 | | - | |
| 580 | + | |
572 | 581 | | |
573 | 582 | | |
574 | 583 | | |
575 | 584 | | |
576 | 585 | | |
577 | | - | |
| 586 | + | |
578 | 587 | | |
579 | 588 | | |
580 | 589 | | |
581 | 590 | | |
582 | | - | |
583 | | - | |
| 591 | + | |
| 592 | + | |
584 | 593 | | |
585 | 594 | | |
586 | 595 | | |
587 | 596 | | |
588 | 597 | | |
589 | 598 | | |
590 | 599 | | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
597 | 606 | | |
598 | 607 | | |
599 | 608 | | |
600 | 609 | | |
601 | | - | |
| 610 | + | |
602 | 611 | | |
603 | 612 | | |
604 | | - | |
| 613 | + | |
605 | 614 | | |
606 | 615 | | |
607 | 616 | | |
| |||
612 | 621 | | |
613 | 622 | | |
614 | 623 | | |
615 | | - | |
| 624 | + | |
616 | 625 | | |
617 | 626 | | |
618 | 627 | | |
619 | 628 | | |
620 | | - | |
621 | | - | |
| 629 | + | |
| 630 | + | |
622 | 631 | | |
623 | 632 | | |
624 | 633 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
| 142 | + | |
141 | 143 | | |
142 | 144 | | |
143 | 145 | | |
| |||
0 commit comments