Skip to content

input element allows name attribute values "isindex", "" #347

@reynir

Description

@reynir

Today I learned that you can't use the "isindex" value for the name attribute of e.g. :
https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-name

Neither is an empty name allowed, but tyxml accepts both:

let _ = Tyxml.Html.(input ~a:[a_name "isindex"]) ()
let _ = Tyxml.Html.(input ~a:[a_name ""]) ()

It is personally not a problem for me, but since you advertise in the README that "TyXML is a library for building statically correct HTML5 [...] documents" I thought I would let you know :D

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions