Re: HTML OK in <mtext> but not in <annotation-xml>, etc. [was: HTML5 with MathML has problem with numerical attrubute values]

Hi Joe,

> @2010-06-14 09:24 -0700:
> The only strangeness was that when an 'input' tag is inside a 'mtext'
> tag the compiler complains about an 'alt' attribute being used by the 
> 'input' tag.
> 
> For example
>   <mtext>
>     <input xmlns="http://www.w3.org/1999/xhtml" id="input12" 
>                   value="?" size="1" alt="?" />
>   </mtext>
> 
> does not validate but 
> 
>   <mtext>
>     <input xmlns="http://www.w3.org/1999/xhtml" id="input12" 
>                   value="?" size="1"/>
>   </mtext>

I think the validator will flag that first input instance as
invalid regardless of whether it is within an mtext element or
not. The reason is that that the alt attribute is valid on the
input element only if the input element also has a type attribute
whose value is "image".

  --Mike

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

Received on Monday, 14 June 2010 20:19:24 UTC