Skip to content

HTML element, attribute, and doctype name validation rules are changing #40366

@domenic

Description

@domenic

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttribute

What specific section or headline is this issue about?

https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttribute#exceptions

What information was incorrect, unhelpful, or incomplete?

In

we are changing the rules for validating various nodes.

This should affect:

  • createAttribute()
  • createAttributeNS()
  • setAttribute()
  • setAttributeNS()
  • toggleAttribute()
  • createElement()
  • createElementNS()
  • createDocument()
  • createDocumentType()
  • customElements: define(), whenDefined()
  • dataset's named property setter

I am not sure how many of these are documented on MDN. I found one, for setAttribute(), linked here. It might be good to search for all links to XML Name.

What did you expect to see?

Links to the new definitions in https://dom.spec.whatwg.org/#namespaces .

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Page report details

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions