createElementTag function
- @Deprecated('Use the specific HTMLElement constructor instead.')
- String tagName
Create an HTMLElement with the specified tagName
.
If no element with tagName
exists, returns an HTMLUnknownElement.
Deprecated in favor of creating the element like other HTML elements:
final anchor = document.createElement('a') as HTMLElement;
Implementation
@Deprecated('Use the specific HTMLElement constructor instead.')
HTMLElement createElementTag(String tagName) =>
document.createElement(tagName) as HTMLElement;