Permalink
Browse files

feat(dom): add createAttribute function

  • Loading branch information...
JeroenVinke committed Jul 23, 2017
1 parent fd3d380 commit a785008a25076d86a2539a63e1a9b9a2d685e242
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/index.js
View
@@ -243,6 +243,12 @@ interface Dom {
*/
createElement(tagName: string): Element;
/**
* Creates the specified HTML attribute
* @param name A string that specifies the name of attribute to be created.
* @return The created attribute.
*/
createAttribute(name: string): Attr;
/**
* Creates a new Text node.
* @param text A string to populate the new Text node.
* @return A Text node.

0 comments on commit a785008

Please sign in to comment.