Commit f9a4894
committed
Add CONTRIBUTING.md, with how-to docs on element-name code generation
This change adds some how-to docs for the process of regenerating the
element-name hash tables in the ElementName.java file — which is
something you need to do when adding a new HTML element. The docs
include steps and info on:
- How to add new element constants
- Which code sections to uncomment for regeneration
- How to compile and run the code generator
- Notes on Gecko vs Java-only builds
- How to update the generated arrays
- Technical details about the hash function and BST structure1 parent 6904dd1 commit f9a4894
2 files changed
+97
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
Submodule html5lib-tests updated 60 files
- .github/workflows/downstream.yml+76
- .github/workflows/lint.yml+25
- .gitignore+79
- lint+6
- lint_lib/__init__.py
- lint_lib/_vendor-patches/funcparserlib.patch+24
- lint_lib/_vendor/__init__.py
- lint_lib/_vendor/funcparserlib/LICENSE+18
- lint_lib/_vendor/funcparserlib/__init__.py
- lint_lib/_vendor/funcparserlib/lexer.py+211
- lint_lib/_vendor/funcparserlib/lexer.pyi+34
- lint_lib/_vendor/funcparserlib/parser.py+872
- lint_lib/_vendor/funcparserlib/parser.pyi+83
- lint_lib/_vendor/funcparserlib/py.typed
- lint_lib/_vendor/funcparserlib/util.py+72
- lint_lib/_vendor/funcparserlib/util.pyi+7
- lint_lib/_vendor/vendor.txt+1
- lint_lib/lint.py+280
- lint_lib/parser.py+177
- pyproject.toml+7
- serializer/core.test+2-2
- tokenizer/domjs.test+6-1
- tokenizer/test1.test+4
- tokenizer/test2.test+1-1
- tokenizer/test3.test+8-8
- tree-construction/blocks.dat-24
- tree-construction/comments01.dat+4-11
- tree-construction/doctype01.dat+5-1
- tree-construction/entities02.dat+2-2
- tree-construction/foreign-fragment.dat+109-23
- tree-construction/html5test-com.dat-1
- tree-construction/math.dat+23
- tree-construction/menuitem-element.dat+2-18
- tree-construction/namespace-sensitivity.dat+6
- tree-construction/plain-text-unsafe.dat
- tree-construction/quirks01.dat+53
- tree-construction/ruby.dat+1
- tree-construction/scriptdata01.dat-13
- tree-construction/search-element.dat+46
- tree-construction/svg.dat+23
- tree-construction/tables01.dat+51-14
- tree-construction/template.dat+86-17
- tree-construction/tests1.dat+15-45
- tree-construction/tests10.dat+25-21
- tree-construction/tests16.dat-2
- tree-construction/tests17.dat+4-6
- tree-construction/tests18.dat+81-43
- tree-construction/tests19.dat-56
- tree-construction/tests2.dat+11-1
- tree-construction/tests20.dat+265-5
- tree-construction/tests21.dat+6-25
- tree-construction/tests26.dat+60
- tree-construction/tests4.dat+16
- tree-construction/tests6.dat+1-1
- tree-construction/tests7.dat+41-6
- tree-construction/tests8.dat+3
- tree-construction/tests9.dat+31-21
- tree-construction/tests_innerHTML_1.dat+5-48
- tree-construction/webkit01.dat+45-17
- tree-construction/webkit02.dat+472
0 commit comments