* This node represents an anchor ( ) element with a hyperlink. See `span` * for further details.
| 1115 | */ |
| 1116 | |
| 1117 | class Anchor { |
| 1118 | constructor(href, classes, children, options) { |
| 1119 | this.children = void 0; |
| 1120 | this.attributes = void 0; |
| 1121 | this.classes = void 0; |
| 1122 | this.height = void 0; |
| 1123 | this.depth = void 0; |
| 1124 | this.maxFontSize = void 0; |
| 1125 | this.style = void 0; |
| 1126 | initNode.call(this, classes, options); |
| 1127 | this.children = children || []; |
| 1128 | this.setAttribute('href', href); |
| 1129 | } |
| 1130 | |
| 1131 | setAttribute(attribute, value) { |
| 1132 | this.attributes[attribute] = value; |
| 1133 | } |
| 1134 | |
| 1135 | hasClass(className) { |
| 1136 | return utils.contains(this.classes, className); |
| 1137 | } |
| 1138 | |
| 1139 | toNode() { |
| 1140 | return toNode.call(this, "a"); |
| 1141 | } |
| 1142 | |
| 1143 | toMarkup() { |
| 1144 | return toMarkup.call(this, "a"); |
| 1145 | } |
| 1146 | |
| 1147 | } |
| 1148 | const iCombinations = { |
| 1149 | 'î': '\u0131\u0302', |
| 1150 | 'ï': '\u0131\u0308', |
nothing calls this directly
no outgoing calls
no test coverage detected