some test cases for having v.nu emit required-element|attribute-missing errors

The following are examples of error messages emitted by v.nu with
a jing build that includes a version of George Bina's patch for
improved reporting of required-but-missing elements and attributes.

I'm posting this now just to give a heads-up about the wording of
the messages and to get any suggestion for refining them. I still
need to make further changes to the code yet in oder to get it
ready for review.

Note that in the case of missing elements, the reason I made it
emit "...is missing a required instance of child element..."
instead of just "...is missing required child element..." is that
for a case like "<ruby><rt></rt><rp></rp><rp></rp>", the ruby
element has a child rt element, as required -- but it also missing
a second instance of the rt element that is required due to the
fac that it also has a pair of <rp> elements.

-----------------------------------------------------------------
Error messages for missing elements:

  "Element head is missing a required instance of child element title."
  http://qa-dev.w3.org:8888/?doc=http%3A%2F%2Fdev.w3.org%2Fhtml5%2Ftests%2Fvalidation%2Ffull%2Finvalid%2Fmissing-children%2Fhead-no-title.html

  "Element hgroup is missing a required instance of one or more of the following child elements:  h1 h2 h3 h4 h5 h6."
  http://qa-dev.w3.org:8888/?doc=http%3A%2F%2Fdev.w3.org%2Fhtml5%2Ftests%2Fvalidation%2Ffull%2Finvalid%2Fmissing-children%2Fhgroup.html

  "Element ruby is missing a required instance of child element rt."
  http://qa-dev.w3.org:8888/?doc=http%3A%2F%2Fdev.w3.org%2Fhtml5%2Ftests%2Fvalidation%2Ffull%2Finvalid%2Fmissing-children%2Fruby-rt-2.html

  "Element ruby is missing a required instance of one or more of the following child elements:  rp rt."
  http://qa-dev.w3.org:8888/?doc=http%3A%2F%2Fdev.w3.org%2Fhtml5%2Ftests%2Fvalidation%2Ffull%2Finvalid%2Fmissing-children%2Fruby-rt-1.html

-----------------------------------------------------------------
Error messages for missing attributes:

  "Element link is missing required attribute href"
  http://qa-dev.w3.org:8888/?doc=http%3A%2F%2Fdev.w3.org%2Fhtml5%2Ftests%2Fvalidation%2Ffull%2Finvalid%2Fmissing-attributes%2Flink-missing-href.html

  "Element object is missing one or more of the following attributes:  data type."
  http://qa-dev.w3.org:8888/?doc=http%3A%2F%2Fdev.w3.org%2Fhtml5%2Ftests%2Fvalidation%2Ffull%2Finvalid%2Fmissing-attributes%2Fobject-missing-data-type.html


-- 
Michael(tm) Smith
http://people.w3.org/mike/

Received on Tuesday, 26 January 2010 15:19:28 UTC