NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 799 - [html4/xhtml1] message "param element has a required name attribute" reported even for param elements that have a name element
[html4/xhtml1] message "param element has a required name attribute" reported...
Status: RESOLVED FIXED
Product: Validator.nu
Classification: Unclassified
Component: XHTML 1.0 schema
HEAD
All All
: P2 normal
Assigned To: Michael[tm] Smith
data:text/html;charset=utf-8,<!DOCTYP...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-12-07 10:11 CET by Michael[tm] Smith
Modified: 2010-12-12 13:49 CET (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 2010-12-07 10:11:32 CET
For HTML4/XHTML1 checking:

data:text/html;charset=utf-8,<!DOCTYPE%20html>%0A<title></title>%0A<p>%0A<object%20data%3Dfoo>%0A<param%20name%3Dfoo%20value%3Dbar>%0A</object>%0A</p>

...causes a "param element has a required name attribute" message to be emitted.

The cause is this assertion in the xhtml.sch file:

<rule context="html:param">
<assert test="html:param/@name">
...

...which should just be:

<rule context="html:param">
<assert test="@name">
...

However, why is this check being done in the xhtml.sch file at all, instead of being expressed in the schema itself?
Comment 1 Henri Sivonen 2010-12-08 11:05:19 CET
(In reply to comment #0)
> However, why is this check being done in the xhtml.sch file at all, instead of
> being expressed in the schema itself?

No idea. It could be that it came from upstream that way. It could also be me goofing.