Skip to content

Commit

Permalink
refactor(hiccup): sort void tags
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Feb 26, 2018
1 parent 9824844 commit 45d6385
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/hiccup/src/api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export const SVG_NS = "http://www.w3.org/2000/svg";
export const XLINK_NS = "http://www.w3.org/1999/xlink";

export const TAG_REGEXP = /^([^\s\.#]+)(?:#([^\s\.#]+))?(?:\.([^\s#]+))?$/;

Expand All @@ -8,7 +9,7 @@ export const SVG_TAGS = "animate animateColor animateMotion animateTransform cir
.reduce((acc, x) => (acc[x] = 1, acc), {});

// tslint:disable-next-line
export const VOID_TAGS = "area base br col command embed hr img input keygen link meta param source track wbr circle ellipse line path polygon polyline rect stop"
export const VOID_TAGS = "area base br circle col command ellipse embed hr img input keygen line link meta param path polygon polyline rect source stop track use wbr"
.split(" ")
.reduce((acc, x) => (acc[x] = 1, acc), {});

Expand Down

0 comments on commit 45d6385

Please sign in to comment.