You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here are some HTML v4 changes needed, and some minor other things.
add 'plaintext' to %isOptionalEndTag (admittedly very rarely used)
add 'svg' => ['xmlns', 'xmlns:xlink', 'xmlns:svg', 'xlink:href'], to %linkElements ('svg' is a legit v4 tag, although I'm not sure how much detail you want to get into on its child tags)
add 'reversed' to list of 'ol' attributes in %boolean_attr (requires turning the list into { 'name' => 1} format)
don't duplicate any tag entry in the lists: build up lists from other lists, if possible, adding only tags which don't appear in one of the sublists
Per 74627, we need to figure out just what exactly is needed for various lists. See also PhilterPaper/HTML-Tagset, in which I have commented out all the HTML 5 tags, leaving only HTML 4. #2 for discussing putting them back in, in some way.
The text was updated successfully, but these errors were encountered:
I also rearranged the code in my copy, PhilterPaper/HTML-Tagset, (per item 4) to define tags in only one place, and use sub-lists to consolidate into higher level lists. For example (per #9), there is a %isHeadOrBodyElement that becomes part of %isHeadElement (along with list of head-only tags).
There may be some missing tags that fall into sub-lists (e.g., 'area' under 'map') that may need to be dealt with, and we need to make sure that all lists end up containing the right tags, regardless of how they're built up.
My version also contains a full list of attributes for each tag, in case that's useful. I also propose to list all children of a given tag (mandatory children and allowed children). Such a list needs to be searchable from the bottom-up, to see if a given tag is allowed to be under (child of) another one. For example, <tr> can be the direct child of <table> or it can be under <tbody> (and possibly other tags).
Different online lists of tags and attributes don't seem to fully agree with each other, so even v4 is still something of a moving target. Discussion is needed.
Here are some HTML v4 changes needed, and some minor other things.
Per 74627, we need to figure out just what exactly is needed for various lists. See also PhilterPaper/HTML-Tagset, in which I have commented out all the HTML 5 tags, leaving only HTML 4. #2 for discussing putting them back in, in some way.
The text was updated successfully, but these errors were encountered: