NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 466 - change some message strings in assertions.sch to harmonize with Assertions.java messages
change some message strings in assertions.sch to harmonize with Assertions.ja...
Status: RESOLVED INTENTIONAL
Product: Validator.nu
Classification: Unclassified
Component: HTML5 schema
HEAD
All All
: P2 normal
Assigned To: Michael[tm] Smith
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-04-01 05:43 CEST by Michael[tm] Smith
Modified: 2009-04-01 14:05 CEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael[tm] Smith 2009-04-01 05:43:36 CEST
Because of differences in the constraint-checking logic in Assertions.java and assertions.sch, it's not very practical to try to have the Assertions.java match some of the original message output from assertion.sch for particular cases.

For example, there are a number of cases in assertions.sch where the message output is "The interactive element foo cannot appear as a descendant of the bar element." But the logic differences in Assertions.java don't make it very practical to have it emit the "interactive" qualifier for those cases (because Assertions.java uses the same code to handle both those interactive elements and also non-interactive elements that have descendant/ancestor constraints.

Similarly, assertions.sch outputs "The foo element cannot contain any nested foo elements." But Assertions.java uses the same code to handle both such "nesting" cases and also non-nesting cases, such that it outputs instead, "The foo element must not appear as a descendant of the foo element."
Comment 1 Henri Sivonen 2009-04-01 13:47:49 CEST
I'm OK with the messages not being exactly harmonized.
Comment 2 Michael[tm] Smith 2009-04-01 14:05:17 CEST
moving to invalid per comment from Henri