Skip to content

Deprecate some DOM methods? #31

Open
@mbostock

Description

@mbostock

Proposed: we deprecate the following methods in favor of the html or svg tagged template literal.

  • DOM.canvas
  • DOM.element
  • DOM.input
  • DOM.range
  • DOM.select
  • DOM.svg
  • DOM.text

None of these methods are especially helpful, so I think it’s pretty much always more idiomatic to use literal HTML. By deprecating, I mean these methods would continue to be supported in the standard library, but we would remove their documentation from the README, or at least relegate them to a deprecated section.

(That leaves DOM.context2d, DOM.download, DOM.uid, for those keeping score.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions