Re: HTML5 with MathML has problem with numerical attrubute values

Hi Joe,

> @2010-05-20 10:20 -0700:
[...]
> https://eyeasme.com/Joe/MathML/HTML5_MathML_browser_test
> 
> Following are a few examples of lines incorrectly marked as "Bad Value":
>  
> Line 560, Column 52: Bad value 0.8em for attribute width on element mspace.
> 
>     <mspace width="0.8em" />

That's caused by the MathML 2.0 RelaxNG schema which the validator.nu
backend uses (from http://yupotan.sppd.ne.jp/relax-ng/mml2.html),
which defines the allowed numeric value for the width attribute
using a datatype that is constrained to match the following
regular expression:

  [0-9]+(em|ex|px|in|cm|mm|pt|pc|%)

The number "0.8" doesn't match that regular expression, because of
the "." dot character.

If the MathML 2.0 schema allows fractional width values, then there's
clearly a bug in the upstream http://yupotan.sppd.ne.jp/relax-ng/mml2.html
schema that needs to be fixed.

> Line 862, Column 58: Bad value 4.0 for attribute maxsize on element mo.
> 
> …   <mo maxsize="4.0" minsize="4.0">&#x007C;<!-- &vert; --></mo>

Same issue there: The schema defines the value of the maxsize
attribute using exactly the same datatype that it uses to define
the value of the width attribute.

> Line 1339, Column 37: Bad value 3 for attribute rowspan on element mtd.
> 
>     <mtd rowspan="3">

The schema doesn't allow numeric values for the rowspan attribute;
it constrains it to the following enumerated list of values:

  top, bottom, center, baseline, axis

So if we can find out if the above are in fact bugs in the schema
-- that the schema is not in conformance with the MathML 2.0 spec
-- then I can correct the copy of the schema that the validator.nu
backend uses, and also send a patch to the upstream schema
maintainer.

I will try to take a look at the MathML 2.0 spec myself today to
confirm -- but if you beat me to it and can cite the relevant
parts of the spec for these cases, and post the pointers here,
that'd be great.

  --Mike

> --- On Thu, 5/20/10, Michael(tm) Smith <mike@w3.org> wrote:
> 
> > From: Michael(tm) Smith <mike@w3.org>
> > Subject: Re: HTML5 with MathML has problem with numerical attrubute values
> > To: "Joe Java" <cop3252@yahoo.com>
> > Cc: www-validator@w3.org
> > Date: Thursday, May 20, 2010, 12:31 PM
> > Joe Java <cop3252@yahoo.com>,
> > 2010-05-20 08:50 -0700:
> > 
> > 
> > It's a bug in the schema that's used by the validator.nu
> > backend
> > on which the HTML5 facet of the W3C Markup Validator
> > relies.
> > 
> > I've filed a bug report for it:
> > 
> >   http://bugzilla.validator.nu/show_bug.cgi?id=744
> > 
> > ...and I will try to get the fix for that checked in very
> > soon,
> > and pushed out to the W3C Markup Validator shortly after
> > that.
> > 
> >   --Mike
> 
> 
> 
> 
> 
> 

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

Received on Friday, 21 May 2010 02:03:26 UTC