NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 365 - RFE: split area into separate patterns
RFE: split area into separate patterns
Status: RESOLVED INTENTIONAL
Product: Validator.nu
Classification: Unclassified
Component: HTML5 schema
HEAD
All All
: P2 enhancement
Assigned To: Henri Sivonen
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-21 21:13 CET by Michael[tm] Smith
Modified: 2008-12-26 13:49 CET (History)
0 users

See Also:


Attachments
patch with proposed changes (3.60 KB, patch)
2008-12-21 21:13 CET, Michael[tm] Smith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael[tm] Smith 2008-12-21 21:13:13 CET
The area element is sorta in a class with the input, button, command, menu, and bb elements in that it has an attribute with an enumerated value, and several variants according to the value of that attribute. In the case of area, it's the shape attribute, and the datatype of the coords attribute on area varies depending on the value of its shape attribute.

It thus makes some sense to have the different variants of the area element defined with different element patterns.

Note that I'm not suggesting this change out of some kind of purist motive consistency or completeness, but because having the content model defined in separate patterns makes it easier to post-process the schema (e.g., to generate documentation from it) without needing to result to doing special-casing (which lacking this suggested change is what I find I need to do).
Comment 1 Michael[tm] Smith 2008-12-21 21:13:52 CET
Created attachment 28 [details]
patch with proposed changes
Comment 2 Michael[tm] Smith 2008-12-26 13:49:17 CET
I'll handle area with some special-casing. From a documentation perspective, area ends up looking kinda ugly regardless, but handling after having experimented with splitting it up, generating the docs without it split is seeming less ugly at this point.