w3c / w3c/mathml

processContents="skip" for other attributes of common mathml elements

Open
#559 4 comments 0 reactions 1 assignee View on GitHub

@davidcarlisle is already working on this.

Since Dec 19, 2025.

MathML 4
Dominant language
HTML
Stars
82
Forks
23
PR merge metrics
No merged PRs in 30d

Description

In my organization, when creating schemas that include MathML formulas, we aim to reference variables using elements that contain values. To this end, we intend to utilize our custom namespace for referencing IDs of other elements within the same document. However, I've noticed that the content checks seem to be bypassed in this scenario. This implies that a validator is unable to confirm if such references are legitimate and pertinent to the given document.

For improved accuracy and reliability in validation processes, it would be more preferable to set 'processContents' to 'lax'. This setting would ensure that all elements within the schema are evaluated for their content, thereby preventing any potential misinterpretations or errors caused by omitted or incorrect references

Affects following lines:

<xs:attributeGroup name="CommonAtt">
<xs:attribute name="id" type="xs:ID"/>
<xs:attribute name="xref"/>
<xs:attribute name="class" type="xs:NMTOKENS"/>
<xs:attribute name="style" type="xs:string"/>
<xs:attribute name="href" type="xs:anyURI"/>
<xs:attributeGroup ref="m:CommonDeprecatedAtt"/>
-<xs:anyAttribute namespace="##other" processContents="skip"/>
+<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:attributeGroup>

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.